Skip to content Skip to sidebar Skip to footer

Android Color Of Back Arrow, Menu Text Color And Component Default Colors

I've been struggling to change the colors of some components with styles but seems every property affects another. Here's the styles that I'm using Color.xml

Solution 1:

Add style for your Toolbar in both style.xml files:

<stylename="AppTheme.Toolbar"parent="ThemeOverlay.AppCompat.Dark.ActionBar"><itemname="android:background">?android:attr/colorPrimary</item><itemname="popupTheme">@style/ThemeOverlay.AppCompat.Light</item><itemname="theme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item></style>

Set style to your Toolbar layout:

<?xml version="1.0" encoding="utf-8"?><android.support.v7.widget.Toolbarxmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/toolbar"android:layout_width="match_parent"android:layout_height="?android:attr/actionBarSize"style="@style/AppTheme.Toolbar"/>

This will give you Toolbar that coloured in your Primary Colour and all elements will become light.

Then delete app:titleTextColor="@android:color/white" to restore checkbox and other elements colour.

Post a Comment for "Android Color Of Back Arrow, Menu Text Color And Component Default Colors"