大佬教程收集整理的这篇文章主要介绍了android – textAppearance在TextView中不起作用,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<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>
这就是我想要的.
但是,在将关于文本的属性移动到样式之后.它错了.
<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>
然后,我将textAppearance属性移动到TextView中.但它仍然是@L_618_9@的.
<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"/>
我的设备是4.1.2.
谁能帮我 .非常感谢.
@H_502_4@以上是大佬教程为你收集整理的android – textAppearance在TextView中不起作用全部内容,希望文章能够帮你解决android – textAppearance在TextView中不起作用所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。