Material Design(材料设计)
各种设计方式
1.拟物化
2.扁平化
3.阴影和层次化
材料设计要做的工作
1.保证向后兼容性
2.使用材料设计主题
3.让视图产生阴影
4.使用List和Card
5.定制动画
使用材料设计主题
<resources>
<style name="AppTheme" parent="android:Theme.Material"></style>
<resources>
让视图产生阴影
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/next"
android:background="@color/white"
android:elevation="5dp">
使用List和Card
RecyclerView
CardView
<android.support.v7.widget.CardView
android:layout_width="200dp"
android:layout_height="200dp"
card_view:cardCornerRadius="3dp"/>
定制动画
startActivity(intent,ActivityOptions.makeScenceTransitionAnimation(this).toBundle());