自定义的dialog没有全屏的解决办法:
AlertDialog dlg = new AlertDialog.Builder(this) .setView(textEntryView,0,0,0,0)
或者
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="Transparent"> <item name="android:windowBackground">@color/transparent_background</item> <item name="android:windowNoTitle">true</item> <item name="android:windowFullscreen">true</item> <item name="android:windowIsTranslucent">true</item> <item name="android:windowAnimationStyle">@+android:style/Animation.Translucent</item> </style> </resources>
其中transparent_background为颜色值:#50000000,透明度为50
final Dialog dialog = new Dialog(this,R.style.Transparent);
http://topic.csdn.net/u/20110719/09/f8fa803d-0884-4063-a417-9824e5ee2423.html