How to Change the toolbar black color text into White in Xamarin.Android while retaining black text of activity text? -
i create toolbar in xamarin.android using code.
<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res/android-auto" android:id="@+id/toolbar" android:layout_height="wrap_content" android:layout_width="match_parent" android:minheight="?attr/actionbarsize" android:background="?attr/colorprimary" /> but text color shown black want white. friend ask me this.
<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res/android-auto" android:id="@+id/toolbar" android:layout_height="wrap_content" android:layout_width="match_parent" android:minheight="?attr/actionbarsize" android:background="?attr/colorprimary" app:theme="@style/themeoverlay.appcompat.dark.actionbar" app:popuptheme="@style/themeoverlay.appcompat.light" /> but showing following errors.
"no resource identifier found attribute "theme" in package "android-auto" "no resource identifier found attribute "popuptheme" in package "android-auto" can suggest code.
think using wrong package app: instead of android: in bit
app:theme="@style/themeoverlay.appcompat.dark.actionbar" app:popuptheme="@style/themeoverlay.appcompat.light" /> try this:
<?xml version="1.0" encoding="utf-8"?> <toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com//apk/res-auto" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:minheight="?android:attr/actionbarsize" android:background="?android:attr/colorprimary" android:theme="@android:style/themeoverlay.material.dark.actionbar" android:popuptheme="@android:style/themeoverlay.material.light" />
Comments
Post a Comment