Reputation: 15945
I´m Using AppCompat 22.1.1
What´s the difference between Base.Widget.AppCompat.Button
and Widget.AppCompat.Button
?
Upvotes: 10
Views: 6204
Reputation: 7270
In the case of AppCompat.Button
, it inherits directly, and as far as I've been able to find, nothing overrides it, so they should be the same. From AppCompat styles.xml
:
<style name="Widget.AppCompat.Button" parent="Base.Widget.AppCompat.Button" />
But according to the AppCompat documentation, we should be using Widget.AppCompat
:
Top level themes
These are the themes to be used directly by developers. These inherit from the relevant second level theme below.
Names:
Theme.AppCompat
,Theme.AppCompat.Light
andTheme.AppCompat.Light.DarkActionBar
Example:
values/Theme.AppCompat
<-Theme.Base.AppCompat
Upvotes: 9