android - Toolbar NavigationIcon loose theme -



android - Toolbar NavigationIcon loose theme -

i utilize 2 themes app depending of actionbar color want (dark or lite color) : - theme.appcompat.light.noactionbar - theme.appcompat.noactionbar

here's toolbar layout :

<android.support.v7.widget.toolbar android:id="@+id/toolbar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minheight="?attr/actionbarsize" app:theme="@style/themeoverlay.appcompat.actionbar" > <textview android:id="@+id/toolbar_title" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_gravity="center" android:maxlines="1" android:ellipsize="end" android:textappearance="?android:attr/textappearancelarge" /> </android.support.v7.widget.toolbar>

in manifest, set application theme lite , activities have attribute theme set dark.

i see weird behaviour toolbar. let's i'm in activity white toolbar (the activity utilize lite theme) , navigate activity reddish toolbar (that has dark theme). when come activity white toolbar, navigation icon (the left pointing arrow) white. has taken dark theme.

hope explained situation clearly.

thank you!

edit fixed in back upwards library v22.0.0

finally, found out bug in appcompat. fixed, still not merged/released.

https://code.google.com/p/android/issues/detail?id=78289

android android-toolbar

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -