如何让Android应用程序的本地元素的字体大小脸和格式? [英] How to get the font face size and formatting of a native element in Android application?
问题描述
我想重复使用相同的字体面等等......像Android在$ P $使用pferenceScreen
I would like to reuse the exact same font-face etc... like Android uses in the PreferenceScreen
下面是截图我期待重用的称号,并从这些意见汇总风格。
Here is a screenshot I am looking to reuse the title, and the summary style from these views.
推荐答案
您可以使用系统定义的文本出现如的android:textAppearance =机器人:ATTR / textAppearanceLarge
(还小,中)。
You can use system-defined text appearances like android:textAppearance="?android:attr/textAppearanceLarge
(also Small, Medium).
更多关于这些系统定义的属性,请参见:
For more on these system-defined attributes, see:
- http://developer.android.com/reference/android/R.attr.html
另外还有 hierarchyviewer
工具捆绑的SDK,它可以让你检查从任何正在运行的应用的看法和他们的属性。
There's also the hierarchyviewer
tool that is bundled with the SDK, which will let you inspect views and their attributes from any running app.
这篇关于如何让Android应用程序的本地元素的字体大小脸和格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!