樣式資源和主題資源都是寫在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