I have a layout that I use for rows in a ListView
. In some places, I need to show the layout in a 'light' style and in some places 'dark'. How can I accomplish this using Android styles, themes, etc?
I understand the concept of styles, but it seems like they're only for a single element. They let me define a set of properties that are applied to the element with the style. What I'd like to do is define the following properties:
- Title text color (applied to
TextView
1) - Subtitle text color (applied to
TextView
2) - Background (applied to the parent layout)