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)
精彩评论