开发者

Android API Demos 8 Translucent the class is TranslucentActivity.java doesn't do anything

TranslucentActivity.java doesn't do anything. There is no translucence, nothing special about it. It just shows an activity 开发者_如何学编程screen.


This is a question about what is wrong with the sample.

The very next sample, the Translucent Blur sample after this works, the prior screen is burred...

// Have the system blur any windows behind this one.
getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

And it shows what it claims to show.

But nothing is done in the TranslucentActivity, about which I am asking.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜