android - How to make an Activity's background transparent? -
how can make activity appear in center of screen dialog while previous activity(the activity call intent transparent one)
remains visible in background ? tried setting gravity center , background #00000000 seen in other answers doesnt work seen in other answers.
try mention style shown dialog , transparent..
<style name="dialogtheme" parent="android:theme.dialog"> <!-- no backgrounds, titles or window float --> <item name="android:windowbackground">@null</item> <item name="android:windowistranslucent">true</item> </style>
in activity apply theme this..
<activity android:name="com.afbb.smartlock.activitys.previewimagesactivity" android:theme="@style/dialogtheme" > </activity>
Comments
Post a Comment