java - Android pre lolipop toolbar dont work -
i have drawer menu in devises post lolipop work fine in change colors on title , icon navigation in devises pre lolipop dont work , display white bar dont show icon
my toolbar
<framelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".users.menudrawer"> <android.support.design.widget.coordinatorlayout android:layout_width="match_parent" android:layout_height="match_parent" android:fitssystemwindows="true" > <android.support.design.widget.appbarlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/apptheme.appbaroverlay"> <android.support.v7.widget.toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionbarsize" android:background="@color/white" app:popuptheme="@style/apptheme.popupoverlay" android:theme="@style/customtoolbar" /> </android.support.design.widget.appbarlayout> <include layout="@layout/content_main" /> </android.support.design.widget.coordinatorlayout> </framelayout>
and styles
<style name="customtoolbar" parent="apptheme"> <item name="android:textcolorsecondary">@color/black</item> <item name="colorprimary">@color/black</item> <item name="actionmenutextcolor">@color/black</item> <item name="android:textcolor">@color/black</item> </style> <style name="apptheme.appbaroverlay" parent="themeoverlay.appcompat.actionbar" > <item name="android:textcolorsecondary">@color/black</item> <item name="colorprimary">@color/black</item> </style> <style name="apptheme.popupoverlay" parent="themeoverlay.appcompat.light" />
my error in used frame layouts in z index position mi toolbar in pre lolipop dont work added change , work fine
<framelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".users.menudrawer"> <android.support.design.widget.coordinatorlayout android:layout_width="match_parent" android:layout_height="match_parent" android:fitssystemwindows="true" > <include layout="@layout/content_main" /> <android.support.design.widget.appbarlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/apptheme.appbaroverlay"> <android.support.v7.widget.toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionbarsize" android:background="@color/white" app:popuptheme="@style/apptheme.popupoverlay" android:theme="@style/customtoolbar" /> </android.support.design.widget.appbarlayout> </android.support.design.widget.coordinatorlayout> </framelayout>
Comments
Post a Comment