新的Android L使用 Material Design,增加一些新(ku xuan)的东西。
1. Material Theme
支持Material Theme,更有给States Bar 以及Navigation bar自定义颜色的功能。
@android:style/Theme.Material (dark version) @android:style/Theme.Material.Light (light version) @android:style/Theme.Material.Light.DarkActionBar
2.UI Widgets
新增控件:RecyclerView
、CardView
前者是ListView的升级版,在View的复用上作了优化,当然支持动画。CardView也是支持更加酷炫的动画,并且整体感官更易于接受。
3.Views And Shadows
三维来了。支持控件通过
android:elevation="2dp"
来实现一个立体的效果
3.Animations
动画更加丰富多彩,给Activity设置淡入淡出动画更加方便。还有其他地方的动画。
Touch feedback
Reveal effect
Activity transitions
Curved motion
View state changes
又更新API,什么时候用得上呢【思考