开发者

android translucent Dialog

How can I configure Dialog layout so that the Dialog is displayed as translucent (with color and alpha channel set to some 50% s开发者_开发知识库o that the overlayed view is visible through the Dialog). I create a custom Dialog and set the contentView to be simple TextView only. Thanks


Well, somehow, this is what you might find usefull:

final Dialog d = new Dialog(this,android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);


You can use setFeatureDrawableAlpha() See http://developer.android.com/reference/android/view/Window.html#setFeatureDrawableAlpha(int, int)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜