Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android appCompat themes vs Base themes

Wha's the difference between the Android Theme.AppCompat and Base.Theme.AppCompat? When should we use the Base theme?

<style name="flatButton" parent="Base.Widget.AppCompat.Button.Borderless">
    <item name="colorAccent">@color/colorAccent</item>
</style>

<style name="flatButton2" parent="Widget.AppCompat.Button.Borderless">
    <item name="colorAccent">@color/colorAccent</item>
</style>
like image 661
georgeok Avatar asked Jan 25 '26 18:01

georgeok


1 Answers

You shouldn't use the Base theme at all - always use the standard themes. The Base themes are used internally to AppCompat and serve as a common base that applies to all API levels - it does not include the API level specific changes that are needed to properly function (something only the standard themes supply).

like image 54
ianhanniballake Avatar answered Jan 28 '26 06:01

ianhanniballake



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!