我想將我的主題中的文字外觀設置爲TextAppearnance.Large。 下面是我在做什麼,我styles.xml(我的應用程序指向這個主題在我的清單)主題中的文字外觀
<style name="myTheme" parent="android:Theme.NoTitleBar.Fullscreen">
<item name="android:textAppearance">@android:style/TextAppearance.Large</item>
</style>
問題: 仍顯示我的文字小。
問題(S):
- 我在做什麼錯在試圖在我的活動使用預定義的TextAppearance?即如何正確指定此TextAppearance?
- TextAppearance.Large/Medium/Small的TextSizes在哪裏定義?
看一下前面提到的這個問題,在stackoverflow上。 http://stackoverflow.com/questions/1726897/how-to-set-text-appearance-in-android-manifest-file可能會有所幫助。 –
是的,我看到那篇文章,但在item標籤中使用'?android:attr/TextAppearance.Large'會產生一個編譯錯誤。 – celoftis
我的答案在這裏可能有所幫助:http://stackoverflow.com/a/8380153/102703 –