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

3

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

How can I change that color using the Android Studio Theme editor ( Android Studio Theme editor )?

    
asked by aldakur 20.05.2016 в 12:31
source

1 answer

3

What you want to do applies to the whole topic, but it seems that through the Android Studio Theme Editor There seems to be no way to change the text color of a TextView with appearance Small , you can only change it:

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

I suggest another option that would be to use the android:textAppearance="?android:attr/textAppearanceSmall" property to define your text as "small" and use the android:textColor property to define 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"/>

    
answered by 20.05.2016 в 20:57