appcompat or material code example
Example: how can I handle both app.compact theme and metrial theme
<TextView android:lyout_width="wrap_content" android:layout_height="wrap_content" style="@style/Theme.MyApp.TextView"/><style name="Theme.MyApp.TextView" parent="Widget.AppCompat.TextView"> <item name="android:textColor">@color/pink</item></style>