我正在尝试按照最新准则使应用程序与Lollipop和Material Design兼容。
无论如何,我都无法在developer.android.com上为Lollipop的组件找到合适的文档,似乎该文档被KitKat卡住了,缺少了适当的文档。
我需要实现此类扁平按钮(http://www.google.com/design/spec/components/buttons.html#buttons-flat-raised-buttons)和此类图标切换(http:// www .google.com / design / spec / components / buttons.html#buttons-other-buttons)。
除此之外,我还尝试实现大型的App Bar / Toolbar-再次找不到合适的文档。
有小费吗?
对于新的工具栏api,请查看 http://developer.android.com/reference/android/widget/Toolbar.html
http://android-developers.blogspot.co.il/2014/10/appcompat-v21-material-design-for-pre.html
对于按钮样式,您只需要使用高程 https://developer.android.com/training/material/shadows-clipping.html
对于按钮切换器,只需使用选择器/涟漪效果 https://developer.android.com/reference/android/graphics/drawable/RippleDrawable.html
GL
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句