1. Styles.xml
<stylename= "transcutestyle"Parent= "@android: Style/theme.devicedefault.dialog"> <!--Border - <Itemname= "Android:windowframe">@android: Color/transparent</Item> <!--is it on the activity ? - <Itemname= "Android:windowisfloating">True</Item> <!--Translucent - <Itemname= "Android:windowistranslucent">True</Item> <!--No title - <Itemname= "Android:windownotitle">True</Item> <!--Transparent Background - <Itemname= "Android:windowbackground">@android: Color/transparent</Item> <Itemname= "Android:backgrounddimamount">0.1</Item> <Itemname= "Android:windowanimationstyle">@null</Item> </style>
2. Androidmanifest.xml
<ApplicationAndroid:allowbackup= "true"Android:icon= "@drawable/ic_launcher"Android:label= "@string/app_name"Android:theme= "@style/transcutestyle" > <ActivityAndroid:name=". Mainactivity "Android:label= "@string/app_name" > <Intent-filter> <ActionAndroid:name= "Android.intent.action.MAIN" /> <categoryAndroid:name= "Android.intent.category.LAUNCHER" /> </Intent-filter> </Activity> </Application>
Android full screen activity pops up in a transparent dialog box