I have two themes defined in themes.xml.
Those two themes are applied in the manifest via productFlavors:
build.gradle
productFlavors {
flavor1 {
dimension "theme"
manifestPlaceholders = [
appTheme: "@style/Theme1"
]
}
flavor2 {
dimension "theme"
manifestPlaceholders = [
appTheme: "@style/Theme2"
]
}
}
manifest.xml
<activity
android:name=".MainActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan"
android:theme="${appTheme}" >
This works correctly, depending on the build variant selected, different themes are applied.
Now I want to integrate Stripe SDK witch declares a Style called StripeDefaultTheme.
In this style I want to override the colorPrimary and colorAccent with the values of my own themes.
Is it possible to declare a parent to a style that is determined by a Build Variant ?