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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -