Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Translucent Dialog Theme for Holo

Can someone help me in finding the theme Holo Equivalent of

 @android:style/Theme.Translucent.NoTitleBar

I tried using

@android:style/Theme.Holo.DialogWhenLarge.NoActionBar

but it's not Translucent.

like image 635
coderplus Avatar asked Oct 12 '12 12:10

coderplus


1 Answers

I think it's better to define your own theme than to use Theme.Holo.Dialog since it enables windowIsFloating. Something like this would be a better equivalent.

<style name="CustomActTheme" parent="@android:style/Theme.Holo"> <item name="android:windowIsTranslucent">true</item> <item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowContentOverlay">@null</item> <item name="android:windowNoTitle">true</item> <item name="android:backgroundDimEnabled">true</item> <item name="android:windowFullscreen">true</item> </style>

like image 55
orbegoso Avatar answered Sep 27 '22 22:09

orbegoso