We could use both API-based value folders and properly handle them.
/values/styles.xml
<style name="NotificationTitle" parent="@style/TextAppearance.StatusBar.EventContent.Title" />
/values-21/styles.xml
<style name="NotificationTitle" parent="@android:style/TextAppearance.Material.Notification.Title" />
Now call the next line in TextView
android:textAppearance="@style/NotificationTitle"
Rahul raveendran
source share