向后兼容性材料设计

时间:2014-10-02 22:02:09

标签: android compatibility android-5.0-lollipop material-design

Google正在this page中说,Material Theme仅适用于Android L开发者预览版。 但是这些应用程序如何在以前版本的Android L上运行?

https://play.google.com/store/apps/details?id=com.borggren.notes

http://officialandroid.blogspot.it/2014/10/a-new-look-for-google-play-newsstand.html

还有其他应用。

他们是否使用了一些与材料设计相似的组件?

他们不使用" android:Theme.Material"?

或者有没有办法在以前的版本中使用Material Theme(我是唯一一个不知道怎么做的人)?

1 个答案:

答案 0 :(得分:1)

我认为他们使用的是组件而非主题本身。如果你试图在没有minSDK = 21的情况下将这个主题作为你的整体主题,它会给你一个错误。他们试图模仿材料设计。

例如,如果您想要浮动操作栏,则可以使用此项目。 https://github.com/FaizMalkani/FloatingActionButton

我猜他使用框架布局来模拟右下角的那个按钮。看看!!