File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed
Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 11MaterialDesign使用
22===
33
4- - ` Material Design ` 是` Google ` 在` 2014 ` 年的` I/O ` 大会上推出的全新设计语言。
4+ - [ Material Design] ( https://material.io/components?platform=android ) 是` Google ` 在` 2014 ` 年的` I/O ` 大会上推出的全新设计语言。
55- ` Material Design ` 是基于` Android 5.0``(API level 21) ` 的,兼容5.0以下的设备时需要使用版本号` v21.0.0 ` 以上的
66` support v7 ` 包中的` appcpmpat ` ,不过遗憾的是` support ` 包只支持` Material Design ` 的部分特性。
7- 使用` eclipse ` 或` Android Studio ` 进行开发时,直接在` Android SDK Manager ` 中将` Extras->Android Support Library `
8- 升级至最新版即可。
7+ 为了更好的去使用,需要继承support.design包:
8+ ```
9+ implementation 'com.android.support:design:<version>'
10+ ```
911
10- 下面我就简单讲解一下如何通过` support v7 ` 包来使用` Material Design ` 进行开发。
1112
1213Material Design Theme
1314---
@@ -690,10 +691,11 @@ final NavigationView navigationView = (NavigationView) findViewById(R.id.navigat
690691从名字可以看出,这个ViewGroup是用来协调它的子View的,CoordinatorLayout 作为一个 ** “super-powered FrameLayout”** ,主要有以下两个作用:
691692
6926931 . 作为顶层布局;
693- 2 . 作为协调子 View 之间交互的容器 。
694+ 2 . 作为协调子View之间交互的容器 。
694695
695696CoordinatorLayout也是在` com.android.support.design ` 包中的组件。
696697
698+ 通过为 CoordinatorLayout 的子View指定 Behaviors,你可以在单一父View下提供许多不同的交互,同时也可以让子View间各自进行交互。
697699#### CoordinatorLayout与FloadingActionButton
698700
699701``` xml
@@ -856,7 +858,9 @@ compile 'com.android.support:recyclerview-v7:21.+'
856858
857859
858860
861+ [ 更多实例请看MaterialSample] ( https://github.com/CharonChui/MaterialSample.git )
862+
859863---
860864
861865- 邮箱 :charon.chui@gmail.com
862- - Good Luck!
866+ - Good Luck!
Original file line number Diff line number Diff line change 1+ 2.UML简介
2+
3+ 推荐使用[ Visual Paradigm] ( https://www.visual-paradigm.com/cn/ ) ,如果是非商业用途可以下载社区版,免费使用
4+
5+ ## 类图
6+
7+ ## 时序图
8+
9+
You can’t perform that action at this time.
0 commit comments