Is that somehow possible? I want to use AppCompat and the new primaryColor and so on...
I don't want to create x themes but only one theme, and let the user set the colors in the settings.
I want to create a theme programmatically, is that somehow possible?
Btw., iterating all views of an activity or fragment and applying the custom colors would be possible, but I'm looking for a more clean way, using themes...
EDIT
What I want is, that I can define the colors in a theme like the following by code:
<style name="AppThemeDarkGreen" parent="AppThemeDefaultDark">
<item name="colorPrimary">#4CAF50</item> <!-- 500 -->
<item name="colorPrimaryDark">#388E3C</item><!-- 700 -->
<item name="colorAccent">#C8E6C9</item><!-- 100 -->
</style>
<style name="AppThemeLightGreen" parent="AppThemeDefaultLight">
<item name="colorPrimary">#4CAF50</item><!-- 500 -->
<item name="colorPrimaryDark">#388E3C</item><!-- 700 -->
<item name="colorAccent">#C8E6C9</item><!-- 100 -->
</style>