当前位置:网站首页>Recyclerview implements flow layout (LinearLayout with line wrap) (flexboxlayoutmanager)
Recyclerview implements flow layout (LinearLayout with line wrap) (flexboxlayoutmanager)
2022-06-26 09:55:00 【Graffiti CC】
Just use this , Others and LinearLayoutMannager equally
// Set up the layout manager
FlexboxLayoutManager flexboxLayoutManager = new FlexboxLayoutManager(MainActivity.this);
//flexDirection Property determines the direction of the spindle ( That is, the arrangement direction of the project ). similar LinearLayout Of vertical and horizontal.
flexboxLayoutManager.setFlexDirection(FlexDirection.ROW);// The principal axis is horizontal , The starting point is on the left .
//flexWrap By default Flex Follow LinearLayout equally , Are arranged without line breaks , however flexWrap Property can support line wrapping .
flexboxLayoutManager.setFlexWrap(FlexWrap.WRAP);// Wrap in the normal direction
//justifyContent Property defines the alignment of the item on the spindle .
flexboxLayoutManager.setJustifyContent(JustifyContent.FLEX_START);// Align the starting points of the intersecting axes .
mRecyclerView.setLayoutManager(flexboxLayoutManager);
边栏推荐
- Configuration internationale
- Day 3 array, pre post, character space, keyword and address pointer
- Does the go compiled executable have dynamic library links?
- Glide's most common instructions
- 2021-11-29 轨迹规划五次多项式
- Single sign on logic
- 我在中山,到哪里开户比较好?在线开户安全么?
- Force buckle ----- remove the maximum and minimum values from the array
- Abnormal record-23
- libgstreamer-1.0. so. 0: cannot open shared object file: No such file or directory
猜你喜欢

mysql 数据库字段查询区分大小写设置

Software testing - how to select the appropriate orthogonal table

Custom interceptor

Detailed explanation of the network security competition questions (2) of the 2021 national vocational college skills competition (secondary vocational group)

install realsense2: The following packages have unmet dependencies: libgtk-3-dev

online trajectory generation

What you need to know to test -- URL, weak network, interface, automation

jz2440---使用uboot燒錄程序

The 100000 line transaction lock has opened your eyes.

Industrial and enterprise patent matching data (hundreds of thousands of data) 1998-2014
随机推荐
Glide's most common instructions
How about the security of flush stock trading software? How to open an account in flush
2021-11-29 quintic polynomial of trajectory planning
TensorFlow遇到的各种错误
Champions League data set (Messi doesn't cry - leaving Barcelona may reach another peak)
c语言语法基础之——函数 小程序 求阶乘
【二分查找】4. 寻找两个正序数组的中位数
SSM项目小例子,SSM整合图文详细教程
install opencv-contrib-dev to use aruco code
logback
Configuration internationale
How does flutter transfer parameters to the next page when switching pages?
Introduction to stored procedure testing
LeetCode 498. 对角线遍历
软件测试---如何选择合适的正交表
SQL 函数
online trajectory generation
install realsense2: The following packages have unmet dependencies: libgtk-3-dev
安装 新版本cmake & swig & tinyspline
Upgrade idea to 2021.2 shortcut keys