简体   繁体   English

向后兼容材料设计

[英]Backward compatibility Material Design

As Google says in this page , Material Theme is only available on Android L Developer Preview. 就像Google在此页面上所说的那样,Material Theme仅在Android L Developer Preview中可用。 But how can these apps work on previous version of Android L? 但是这些应用程序如何在Android L的早期版本上运行?

https://play.google.com/store/apps/details?id=com.borggren.notes 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 http://officialandroid.blogspot.it/2014/10/a-new-look-for-google-play-newsstand.html

There are other apps. 还有其他应用程序。

Do they use some components similar to material design? 他们是否使用一些类似于材料设计的组件?

Don't they use the "android:Theme.Material"? 他们不使用“ android:Theme.Material”吗?

Or is there a way to use Material Theme on previous versions (and I am the only one who doesn't know how to do this)? 还是有一种方法可以在以前的版本中使用Material Theme(我是唯一不知道如何执行此操作的人)?

I think they are using the components not the theme itself. 我认为他们使用的不是主题本身的组件。 If you try to give this theme as your overall theme in studio without the minSDK =21 it gives you an error. 如果您尝试在没有minSDK = 21的情况下将此主题作为工作室的整体主题,则会出现错误。 They are trying to emulate the material design. 他们正在尝试模仿材料设计。

For example if you want the floating action bar you can use this project. 例如,如果您想要浮动操作栏,则可以使用此项目。 https://github.com/FaizMalkani/FloatingActionButton https://github.com/FaizMalkani/FloatingActionButton

I guess he uses frame layout to emulate that button on the lower right corner. 我猜他使用框架布局来模拟右下角的按钮。 Have a look!! 看一看!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM