Android Dialog style property

<style name="dialog" parent="@android:style/Theme.Dialog">
    //Dialog's windowFrame box is None
    <item name="android:windowFrame">@null</item>
    //Whether to float above the activity
    <item name="android:windowIsFloating">true</item>
    //whether translucent
    <item name="android:windowIsTranslucent">true</item>
    //whether to display title
    <item name="android:windowNoTitle">true</item>
    //Set the background of the dialog
    <item name="android:background">@android:color/transparent</item>
    // Whether the background of the display area is transparent
    <item name="android:windowBackground">@android:color/transparent</item>
    //It is the value used to control the grayscale. When it is 1, the interface except our dialog content is highlighted, the area other than the dialog is black, and no other content can be seen at all. The default value of the system is 0.5
    <item name="android:backgroundDimAmount">0.5</item>
    // Whether to use a black translucent background outside the display area
    <item name="android:backgroundDimEnabled">true</item>
</style>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325936797&siteId=291194637