Using a custom header in android -
i using custom header in android. issue when activity loads 1s default brown/blackish header shown. how prevent happening?
relevant xml:
<resources> <style name="customwindowtitlebackground"> <item name="android:background">#00693331</item> </style> <style name="customtheme" parent="android:theme"> <item name="android:windowtitlesize">70dip</item> <item name="android:windowtitlebackgroundstyle">@style/customwindowtitlebackground</item> </style> </resources>
i inflating layout in java.
we solved setting theme to:
android:theme="@android:style/theme.notitlebar"
we set whole application, override in activities our custom title bar theme.
Comments
Post a Comment