我正在使用 AppCompat 22.1.1
Base.Widget.AppCompat.Button
和 Widget.AppCompat.Button
有什么区别?
最佳答案
在 AppCompat.Button
的情况下,它直接继承,据我所知,没有任何东西覆盖它,所以它们应该是相同的。来自 AppCompat styles.xml
:
<style name="Widget.AppCompat.Button" parent="Base.Widget.AppCompat.Button" />
但是根据AppCompat documentation ,我们应该使用 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
关于android - Base.Widget.AppCompat.Button 与 Widget.AppCompat.Button,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29860852/