I need to have an action bar along with having a set theme as Theme.Wallpaper. I have put the theme as Wallpaper in styles.xml in values folder, but it makes my action bar not to get initialized. How to get the both things done? Viz- Theme as Wallpaper and with all glories of an Action Bar?
Inside your styles.xml file, for getting the Action Bar working, use the theme with parent as android:Theme.Holo.Light.DarkActionBar
For getting the attributes of a Wallpaper Theme in android, use the items that are used by the android Wallpaper theme style, like, showWallpaper -> true ...
so customize your "AppTheme" with adding those values to the items.
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar" >
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowShowWallpaper">true</item>
</style>
This will serve the purpose.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With