If a theme applies to every View in the app, why must an individual View make reference to a style within the theme?



“A theme is a style applied to an entire Activity or application,
rather than an individual View (as in the example above). When a style
is applied as a theme, every View in the Activity or application will
apply each style property that it supports.”

Android Programming (2nd Edition), The Big Nerd Ranch Guide. Page 155.

"In a theme attribute reference, you tell Android’s runtime resource
manager, “Go to the app’s theme and find the attribute named
listSeparatorTextViewStyle. This attribute points to another style
resource. Put the value of that resource here.”

Question: If the app’s theme applies to the entire app, and every View in the app will apply each style property that it supports from the theme, why is it necessary to reference listSeparatorTextViewStyle specifically?


mlm, I think you should just delete a part of code and see what happens.
style="?android:listSeparatorTextViewStyle" - this part

You will see that text will be different than when you apply this code.
Theme that applied for an app just overal shows text with Upper and Lower case letters + it is not bold.


Thank you to both of you for your replies. I have a better understanding of themes now. Sorry for the late reply!