没有合适的资源?快使用搜索试试~ 我知道了~
Android代码-LayoutManager-FlowLayout
共72个文件
xml:20个
java:18个
gif:7个
需积分: 9 0 下载量 196 浏览量
2019-08-07
04:46:46
上传
评论
收藏 36.37MB ZIP 举报
温馨提示
说真的自从对RecyclerView的LayoutManager有新的认识后,完全不用担心很多的复杂布局了。而且对ViewGroup测量过程也不用担心了,因为里面有LayoutManager帮我们实现了。下面就进入该篇文章的主题吧,废话不多说,直接上图更有说服力。 上面的示例图是我把ItemView分别用了TextView和ImageView。其实这些是没什么好说的,主要是如何定义这样的LayoutManager。相信大家都用过了LinearLayoutManager吧,系统提供的LayoutManager都是对齐的方式进行排版的,我们这里的flow的样式就是在排版item之前,判断了该行多余的空间还够不够显示,如果不够直接换行显示的思路。 使用: 详见TextFlowActivity、DiffHeightTextFlowActivity、PhotoFlowActivity RecyclerView recyclerView = (RecyclerView) findViewById(R.id.flow); FlowLayoutManager flow
资源推荐
资源详情
资源评论
收起资源包目录
Android代码-LayoutManager-FlowLayout.zip (72个子文件)
LayoutManager-FlowLayout-master
gradlew 5KB
settings.gradle 27B
LayoutManager-FlowLayout.iml 878B
library
src
androidTest
java
com
library
flowlayout
ExampleInstrumentedTest.java 753B
test
java
com
library
flowlayout
ExampleUnitTest.java 400B
main
AndroidManifest.xml 254B
res
values
strings.xml 70B
java
com
library
flowlayout
SpaceItemDecoration.java 606B
FlowLayoutManager.java 10KB
NestedRecyclerView.java 2KB
library.iml 11KB
.gitignore 7B
build.gradle 880B
proguard-rules.pro 664B
gradle
wrapper
gradle-wrapper.properties 233B
gradle-wrapper.jar 52KB
README.md 6KB
local.properties 435B
gradlew.bat 2KB
photos
IMG_0221.jpg 115KB
悬浮商品属性界面.gif 3.82MB
me.png 188KB
RecyclerView-LayoutManager-DiffHeightText.gif 6.03MB
RecyclerView-LayoutManager-Image.gif 13.45MB
商品属性界面.gif 4MB
动画演示.gif 2.89MB
RecyclerView-LayoutManager-Text.gif 7.7MB
长点击显示删除图片界面.gif 3.67MB
demo.png 3KB
gradle.properties 730B
.gitignore 19B
app
src
androidTest
java
com
single
flowlayout
ExampleInstrumentedTest.java 746B
test
java
com
single
flowlayout
ExampleUnitTest.java 399B
main
AndroidManifest.xml 1023B
res
mipmap-hdpi
ic_launcher.png 3KB
mipmap-xxxhdpi
ic_launcher.png 10KB
mipmap-xhdpi
ic_launcher.png 5KB
mipmap-mdpi
ic_launcher.png 2KB
drawable
product_item_back.xml 221B
product_item_select_back.xml 221B
layout
flow_item.xml 450B
activity_photo_flow.xml 471B
flow_photo_widther_item.xml 358B
flow_photo_item.xml 358B
flow_layout.xml 445B
product_item.xml 747B
activity_main.xml 741B
activity_lanuch.xml 1KB
flow_item_heigher.xml 485B
activity_product.xml 390B
values-w820dp
dimens.xml 358B
values
colors.xml 208B
strings.xml 87B
styles.xml 383B
dimens.xml 211B
mipmap-xxhdpi
ic_launcher.png 8KB
java
com
single
flowlayout
PhotoFlowActivity.java 6KB
DataConfig.java 6KB
Product.java 567B
SuspensionProductActivity.java 432B
ProductActivity.java 4KB
TextFlowActivity.java 4KB
SuspensionDecoration.java 6KB
LanuchActivity.java 2KB
DiffHeightTextFlowActivity.java 3KB
ShowItem.java 678B
ProductAdapter.java 4KB
app.iml 12KB
.gitignore 7B
build.gradle 1023B
proguard-rules.pro 664B
build.gradle 541B
共 72 条
- 1
资源评论
weixin_39840387
- 粉丝: 780
- 资源: 3万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功