I know this question has already been asked, but I cannot figure out how to make it work. I want to change the background of my title bar.
I do not want to change anything about the style of my application or my background.
I followed a few posts on this site, but none of them seem to give a satisfactory result.
I would have thought it would be as easy as installing
<style name="AppTheme" parent="AppBaseTheme"> <item name="android:windowTitleBackgroundStyle">@drawable/backrepeat</item> </style>
In styles.xml
However, this does not give any changes.
For completeness below my backrepeat file
<bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/bg_diamonds" android:tileMode="repeat" android:dither="true" />
and code in manifest.xml
<application android:allowBackup="true" android:icon="@drawable/maxmm_start_icon" android:label="@string/app_name" android:theme="@style/AppTheme" >
android titlebar custom-titlebar
Tim van Lieshout
source share