当前位置:网站首页>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);
边栏推荐
- From TF 1 X to TF 2.6 (update if you encounter it)
- 2021-11-12 vrep视觉传感器配置
- Go learning notes (83) - code specification and common development skills
- Logical English structure [key points]
- jz2440---使用uboot燒錄程序
- pcl install
- Wechat official account reported error 10003
- Halcon photometric stereoscopic
- The basis of C language grammar -- function nesting, Fibonacci sum of recursive applet and factorial
- 异常记录-23
猜你喜欢

Flutter's brain map notes are easy to find and search!

力扣------从数组中移除最大值和最小值

Wechat official account reported error 10003

Specific implementation comparison between different programming languages

What is the web SSH service port of wgcloud

The basis of C language grammar -- pointer (multidimensional array, function, summary) learning

c语言语法基础之——指针( 多维数组、函数、总结 ) 学习
![[trajectory planning] testing of ruckig Library](/img/c7/51c0f6dc3bf7c7fa4528118a4c32fa.png)
[trajectory planning] testing of ruckig Library

c语言语法基础之——指针(字符、一维数组) 学习

【轨迹规划】Ruckig库的测试
随机推荐
Automated testing -- Introduction and use of pytest itself and third-party modules
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. npm ER
LeetCode 0710.黑名单中的随机数 - 预处理实现O(1)取值
c语言语法基础之——指针( 多维数组、函数、总结 ) 学习
Detailed explanation of the network security competition questions (2) of the 2021 national vocational college skills competition (secondary vocational group)
Click the mask layer to close the pop-up window
2021-11-12 vrep vision sensor configuration
thymeleaf中抽取公共片段
Tensorflow dynamically allocates video memory
Leetcode basic calculator 224 227. follow up 394
The basis of C language grammar -- learning of local variables and storage categories, global variables and storage categories, and macro definitions
使用递归或while循环获取父/子层级结构的名称
WIN10系统实现Redis主从复制
install realsense2: The following packages have unmet dependencies: libgtk-3-dev
Custom interceptor
Threadmode interpretation of eventbus
LeetCode 基本计算器 224. 227. follow up 394
【轨迹规划】Ruckig库的测试
mysql学习总结
Druid data source for background monitoring