<!--recently did the project, uses the Alertdialog, uses the system to bring the style to be very difficult to see, therefore looked up the material oneself to define a style.resAdd the following code in/value/style.xml:--> <style name="Dialog"Parent="@android: Style/theme.dialog"> <!--Dialog windowframe box is free-and <item name="Android:windowframe"> @null </item> <!--emerge on activity--<item name="android:windowisfloating">true</item> <!--Translucent--<item name="android:windowistranslucent">true</item> <!--show Title--> <item name="Android:windownotitle">true</item> <!--Set the background of the dialog, (#00000000)-<item Name="Android:background"> @android:color/transparent</item> <!--show whether the area background is transparent, (#00000000)-<item Name="Android:windowbackground"> @android:color/transparent</item> <!--is used to control the value of grayscale, when 1 o'clock, the interface in addition to our dialog content is highlighted, dialog outside the area is black, Nothing else is completely visible, and the default value for the system is 0.5-<item Name="Android:backgrounddimamount">0.5</item> < Whether to use a black translucent background---<item name= outside!--display area"android:backgrounddimenabled">true</item> </style>
android dialog Style property settings