Наконец-то выяснилось, что я делаю неправильно ... (в основном я использовал функции из API 9, когда я занимаюсь только разработкой для API 8).
Во-первых, для использования по умолчанию (платформа) использование стиля ...
style = "@android: style / TextAppearance.Small"
Например ...
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:padding="3dp">
<ImageView
android:id="@+id/notImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:layout_alignParentTop="true"/>
<TextView
android:id="@+id/notContentTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf ="@id/notImage"
android:textStyle="bold"
style = "@android:style/TextAppearance.Medium"/>
<TextView
android:id="@+id/notContentText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below ="@id/notImage"
style = "@android:style/TextAppearance.Small" />
Во-вторых, чтобы использовать стиль по умолчанию для StatusBar, используйте ..
style = "@android: style / TextAppearance.StatusBar.EventContent" или
style = "@android: style / TextAppearance.StatusBar.EventContent.Title ",
и т. д. и т. д.
Например,
<TextView
android:id="@+id/notContentText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below ="@id/notImage"
style = "@android:style/TextAppearance.StatusBar.EventContent" />
В моем случае это вызвало ошибку, поскольку яЯ все еще разрабатываю для Android 2.2 (API 8), хотя эти стили StatusBar предназначены для API 9 и выше.(Я знаю, что я должен обновить :))
Полезные ссылки:
Android.com Применение стилей и тем, Использование стилей и тем платформы
Android.com R.style reference
StackOverflow.com Пользовательские макеты уведомлений и цвета текста
Уровни Android.com Android API *