学习Material Design Support
2015-12-27 23:05
211 查看
读Blog,学会使用控件
http://android-developers.blogspot.com/2015/05/android-design-support-library.html
cheesesquare,使用5.0控件项目
https://github.com/chrisbanes/cheesesquare
DrawerLayout,NavigationView.用于侧边栏实现。
CoordinatorLayout:最外层用于滑动控制app:layout_scrollFlags=“”
scroll: this flag should be set for all views that want to scroll off the screen - for views that do not use this flag, they’ll remain pinned to the top of the screen
enterAlways: this flag ensures that any downward scroll will cause this view to become visible, enabling the ‘quick return’ pattern
enterAlwaysCollapsed: When your view has declared a minHeight and you use this flag, your View will only enter at its minimum height (i.e., ‘collapsed’), only re-expanding to its full height when the scrolling view has reached it’s top.
exitUntilCollapsed: this flag causes the view to scroll off until it is ‘collapsed’ (its minHeight) before exiting
AppBarLayout:
using an AppBarLayoutallows your Toolbar and other views (such as tabs provided by TabLayout) to react to scroll events in a sibling view marked with a ScrollingViewBehavior.
ToolBar:
using a Toolbar in your layout, allowing you to more easily customize the look and integration of that iconic part of an app with the rest of your layout.
CollapsingToolBarLayout:
Adding a Toolbar directly to an AppBarLayout gives you access to the enterAlwaysCollapsed andexitUntilCollapsed scroll flags, but not the detailed control on how different elements react to collapsing. For that, you can use CollapsingToolbarLayout:
处理子元素相应不同的collapsing。
app:layout_collapseMode=“pin” 或者”parallax”
http://android-developers.blogspot.com/2015/05/android-design-support-library.html
cheesesquare,使用5.0控件项目
https://github.com/chrisbanes/cheesesquare
DrawerLayout,NavigationView.用于侧边栏实现。
CoordinatorLayout:最外层用于滑动控制app:layout_scrollFlags=“”
scroll: this flag should be set for all views that want to scroll off the screen - for views that do not use this flag, they’ll remain pinned to the top of the screen
enterAlways: this flag ensures that any downward scroll will cause this view to become visible, enabling the ‘quick return’ pattern
enterAlwaysCollapsed: When your view has declared a minHeight and you use this flag, your View will only enter at its minimum height (i.e., ‘collapsed’), only re-expanding to its full height when the scrolling view has reached it’s top.
exitUntilCollapsed: this flag causes the view to scroll off until it is ‘collapsed’ (its minHeight) before exiting
AppBarLayout:
using an AppBarLayoutallows your Toolbar and other views (such as tabs provided by TabLayout) to react to scroll events in a sibling view marked with a ScrollingViewBehavior.
ToolBar:
using a Toolbar in your layout, allowing you to more easily customize the look and integration of that iconic part of an app with the rest of your layout.
CollapsingToolBarLayout:
Adding a Toolbar directly to an AppBarLayout gives you access to the enterAlwaysCollapsed andexitUntilCollapsed scroll flags, but not the detailed control on how different elements react to collapsing. For that, you can use CollapsingToolbarLayout:
处理子元素相应不同的collapsing。
app:layout_collapseMode=“pin” 或者”parallax”
相关文章推荐
- PHP生成pdf
- 1071. Speech Patterns (25)【字符串操作】——PAT (Advanced Level) Practise
- 面试题_48_to_65_Java 集合框架的面试题
- CHARINDEX:显示包含"A"的所有雇员的姓名及"A"在姓名字段中的位置
- 欢迎使用CSDN-markdown编辑器
- 久违了,我的hibernate
- c++对象内存模型【内存布局】
- 蓝桥杯之查找整数
- 观察者模式
- uva10400
- 1070. Mooncake (25)【贪心】——PAT (Advanced Level) Practise
- 解决mysql不能通过'/tmp/mysql.sock 连接的问题
- Docker介绍与安装使用(一)
- 怎么快速判断一篇论文的质量
- Java 匿名类
- 你自己不优秀,认识谁都是个屁
- sitemesh使用
- LeetCode之Dynamic Programming题目汇总
- DICOM:docker实现DICOM服务虚拟化
- 1069. The Black Hole of Numbers (20)【模拟】——PAT (Advanced Level) Practise