3 votes

Change color of TextView, Smal text, in Android Studio Theme editor

There is no option to change the color of the TextView Small text

How can I change that color by using the theme editor of Android Studio (Android Studio Theme editor) ? introducir la descripción de la imagen aquí

3voto

Elenasys Points 67941

What you want to do, apply for the whole issue, but it seems that by means of the Android Studio Theme Editor, apparently there is a way to change the color of the text of a TextView looking Small, you can only change :

android:textColorPrimary for the text "Large" and android:textColorSecondary for the text "Medium":

introducir la descripción de la imagen aquí

I suggest another option would be to use the property android:textAppearance="?android:attr/textAppearanceSmall" to define your text as "small" and use the property android:textColor to set the color:

  <TextView
        android:id="@+id/myTextView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Big Text"
        android:textStyle="italic"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:textColor="@android:color/holo_red_dark"/>

    <TextView
        android:id="@+id/myTextView2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Medium Text"
        android:textStyle="italic"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:textColor="@android:color/holo_blue_dark"/>

    <TextView
        android:id="@+id/myTextView3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Small Text"
        android:textStyle="italic"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:textColor="@android:color/holo_green_dark"/>

introducir la descripción de la imagen aquí

HolaDevs.com

HolaDevs is an online community of programmers and software lovers.
You can check other people responses or create a new question if you don't find a solution

Powered by:

X