I am trying to create an ExpandableListView where group headers are reversed. No problem changing text color, size, etc. Through XML. I even found out how to use system defaults like
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
style="@android:style/TextAppearance.Medium.Inverse"
/>
But for the background color ?! I don’t understand why these styles do not include background color information ?!
Of course, I could use a direct color, but I'm looking for good default attributes or background styles. Like "style / Background.For.TextAppearance.Medium.Inverse"; -)
What would be a good solution? So for dark theme devices I get white / gray color, and for white theme I get black?
Or should I just use R.color.background_light?
Cheers, Jörg
PS: The first question is here ;-) Thanx to all the people who answer here in recent months and years: you great people made it much easier for me to find a re-entry into programming after a 12 year break; -)
source
share