Daniel Gomez Rico
Daniel Gomez Rico

Reputation: 15945

Base.Widget.AppCompat.Button vs Widget.AppCompat.Button

I´m Using AppCompat 22.1.1

What´s the difference between Base.Widget.AppCompat.Buttonand Widget.AppCompat.Button ?

Upvotes: 10

Views: 6204

Answers (1)

Jim Pekarek
Jim Pekarek

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 and Theme.AppCompat.Light.DarkActionBar

Example: values/Theme.AppCompat <- Theme.Base.AppCompat

Upvotes: 9

Related Questions