I have a problem figuring out how to do this:
I am currently coding an app that comes with different themes (User can select the complete appereance of the app out of a list of different styles).
Then the list item is selected I want to call setTheme(R.style.Own_App_Style0);
to change the complete appearance.
The problem is best explained by an example: Lets say we have 2 TextView.
Theme1 1. TextView: TextColor should be green and TextSize 15sp. 2. TextView: TextColor should be red and TextSize 10sp.
Theme2 1. TextView: TextColor should be blue and TextSize 10sp. 2. TextView: TextColor should be yellow and TextSize 10sp.
Of course I know that by setting <item name="textViewStyle">@android:style/Widget.TextView</item>
I can change the default appearance of TextViews.
But how can it be done to have lets say two (ore more) different types of TextView with different applied styles (and by xml)?