You can describe a custom theme (which can simply point to a default theme) in the form of a typing resource file , and then refer to this theme in the manifest.
Then you can provide alternative resources based on some criteria (just like with pins of different densities, but now you must specify the minimum screen size or, for example, API).
Manifext:
<application android:theme="@style/CustomTheme">
RES / values / styles.xml:
<style name="CustomTheme" parent="android:Theme.Black.NoTitleBar" />
RES / values-V11 / styles.xml:
<style name="CustomTheme" parent="android:Theme.Dialog" />
source share