android - textAppearance not work in TextView -
i show linked text in textview. @ beginning , code this:
<textview style="@style/informed_consent_check_textview" android:id="@+id/accept_content_1" android:text="@string/informed_consent_accept" /> <style name="informed_consent_check_textview" > <item name="android:layout_width">match_parent</item> <item name="android:layout_height">wrap_content</item> <item name="android:textsize">13dp</item> <item name="android:textcolor">#fff</item> <item name="android:textcolorlink">#fff000</item> </style>
it works alright.the link text display this:
that's want.
however , after move attributes text style . works wrong.
<style name="informed_consent_content_textappearance"> <item name="android:textsize">13dp</item> <item name="android:textcolor">#fff</item> <item name="android:textcolorlink">#fff000</item> </style> <style name="informed_consent_check_textview" > <item name="android:layout_width">match_parent</item> <item name="android:layout_height">wrap_content</item> <item name="android:textappearance">@style/informed_consent_content_textappearance</item> </style>
the link text display wrong color:
and , move textappearance attribute textview. still wrong.
<textview style="@style/informed_consent_check_textview" android:id="@+id/accept_content_1" android:text="@string/informed_consent_accept" android:textappearance="@style/@style/informed_consent_content_textappearance"/>
my device 4.1.2 .
who can me . lot.
make change in textview attribute
android:textappearance = "@style/informed_consent_content_textappearance"
Comments
Post a Comment