android dialog Style property settings

Source: Internet
Author: User

<!--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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.