A LayoutManager is responsible for measuring and positioning item views within a RecyclerView as well as determining the policy for when to recycle item views that are no longer visible to the user. By changing the LayoutManager a RecyclerView can be used to implement a standard vertically scrolling list, a uniform grid, staggered grids, horizontally scrolling collections and more. Several stock layout managers are provided for general use.

  If the LayoutManager specifies a default constructor or one with the signature (ContextAttributeSetintint), RecyclerView will instantiate and set the LayoutManager when being inflated. Most used properties can be then obtained from getProperties(Context, AttributeSet, int, int). In case a LayoutManager specifies both constructors, the non-default constructor will take precedence.

最新文章

  1. 跨平台日志清理工具 Log-Cutter v2.0.1 正式发布
  2. Ubuntu安装dos2unix工具
  3. 2.mybatis入门实例 连接数据库进行查询
  4. http响应Last-Modified和ETag(转)
  5. python 面向对象深入理解
  6. jQuery 遍历
  7. ViewState存储到服务器
  8. Jquery filter()方法简介
  9. MySQL InnoDB存储引擎undo redo解析
  10. get_class_vars 返回由类的默认属性组成的数组
  11. 专注VR/AR广告 ,内容感知广告公司Uru获80万美元投资
  12. C语言的函数类型
  13. 老李分享: JSON
  14. Sybase - tempdb
  15. day 7-5 守护线程
  16. Java中instanceof与getClass的区别
  17. git 处理
  18. testNG中dataprovider使用的两种方式
  19. java项目配置域名(tomcat直接配置 or 使用nginx反向代理)
  20. hbase源码带注释版本,放在这里,方便大家下载吧

热门文章

  1. user-agent中的mozilla
  2. 关于php框架
  3. php操作mysqli(示例代码)
  4. MVC下用C#实现Excel导出
  5. 阿里云之OSS 开放存储服务开发笔记
  6. centos 虚拟机安装过程
  7. 剑指offer--面试题15
  8. 为什么乱码:<meta http-equiv="content-type">前的非ANSI字符
  9. How do you design object oriented projects?
  10. POJ3468 A Simple Problem With Integers 树状数组 区间更新区间询问