样式资源和主题资源都是写在styles.xml文件里面的
30sp
#06F
18sp
在activity_main.xml中引用
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="乔布斯"
style="@style/title"
android:id="@+id/textView"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="懵逼树下懵逼果,懵逼树下你和我"
android:layout_below="@+id/textView"
style="@style/context"/>
效果:
原文:https://www.cnblogs.com/lzpq/p/12885404.html