Android Question Appcompat Theme Manifest

Scantech

Well-Known Member
Licensed User
Longtime User
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
<style name="MyAppTheme" parent="@style/Theme.AppCompat">
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="preferenceTheme">@style/PreferenceThemeOverlay.Material</item>
<item name="asp_preferenceIconTint">?colorAccent</item>
<item name="asp_preferenceDialogIconTint">?asp_preferenceIconTint</item>
<item name="windowActionModeOverlay">true</item>
</style>
</resources>
)

Do i have to specify the ColorPrimary and ColorAccent? It seems to default to the colors that i need. I have tested it on many Android device and have no problems.
 
Top