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

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -