设置应用中用于标题和副标题的文本样式
Text styles used in Settings app for titles and subtitles
“设置”应用中的标题和副标题使用了哪些文本样式?我尝试使用以下方法,但其中 none 产生了相同的结果。
标题文字
android:textAppearance="?android:titleTextAppearance"
android:textAppearance="?attr/title"
字幕文字
android:textAppearance="?android:subtitleTextAppearance"
android:textAppearance="?attr/subtitle"
文本样式往往不足以实现特定的样式,您通常还需要设置颜色。在这种情况下,我怀疑他们使用 Google Material Components 样式。鉴于您的字体比例,很难在这里判断合适的字体大小,但这是我认为他们使用的:
标题
android:textAppearance="?textAppearanceBody1"
副标题
android:textAppearance="?textAppearanceBody2"
android:textColor="@color/material_on_background_emphasis_medium"
他们还使用一种特殊的字体。
“设置”应用中的标题和副标题使用了哪些文本样式?我尝试使用以下方法,但其中 none 产生了相同的结果。
标题文字
android:textAppearance="?android:titleTextAppearance"
android:textAppearance="?attr/title"
字幕文字
android:textAppearance="?android:subtitleTextAppearance"
android:textAppearance="?attr/subtitle"
文本样式往往不足以实现特定的样式,您通常还需要设置颜色。在这种情况下,我怀疑他们使用 Google Material Components 样式。鉴于您的字体比例,很难在这里判断合适的字体大小,但这是我认为他们使用的:
标题
android:textAppearance="?textAppearanceBody1"
副标题
android:textAppearance="?textAppearanceBody2" android:textColor="@color/material_on_background_emphasis_medium"
他们还使用一种特殊的字体。