How to make white text in the application shows white
1 answer
toolbar.setTitleTextColor(0xFFFFFFFF); or
toolbar.setTitleTextColor(android.graphics.Color.WHITE); or through styles.xml add an item to the style for AppCompat
<item name="android:textColorPrimary">TITLE_COLOR_GOES_HERE</item> or add to xml in the toolbar tag
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/oolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/> - oneIn this case, the color in the application toolbar in the application list should, in theory, be defined only through styles - YuriySPb ♦
- Thanks, the first and second ones work in the toolbar inside the application, but the outside is the same, 3.4 doesn't change anything at all (in my case). some extra Information is needed to solve the problem? - terminal019
- noticed that if the toolbar is blue, then the text is black, and if the toolbar is black, then the text becomes white automatically - terminal019
|
