FlexboxLayout is a library project which brings the similar capabilities of CSS Flexible Box Layout Module to Android.
Questions tagged [android-flexboxlayout]
74 questions
0
votes
0 answers
Recycle view FlexboxLayoutManger issue
After scrolling the Recycle view and moving from one fragment to another when you come back to same fragment recycleview is not getting visible
(using recycle view with FlexboxLayoutManger)
Recycle view is working fine with LinearlayoutManager
0
votes
0 answers
How to group items within RecyclerView when using FlexboxLayoutManager
I am making a simple quiz-like app where the player needs to guess a set of words based on some clues. The placeholder for the words is managed using a RecyclerView where each item corresponds to one letter of the hidden words. I am using…

BuddhaBowl
- 1
- 1
0
votes
0 answers
How to fill first row with 3 elements in FlexboxLayoutManager?
Code is
val nlayoutManager = FlexboxLayoutManager(activity)
nlayoutManager.flexDirection = FlexDirection.ROW
nlayoutManager.flexWrap = FlexWrap.WRAP
nlayoutManager.justifyContent = JustifyContent.FLEX_START
nlayoutManager.alignItems =…

Anubhav Adhyayan
- 1
- 1
0
votes
1 answer
Flexbox layout reduces my buttons in recyclerview
I want to make a list with buttons using flexbox layout. If I use recyclerview and button with icon, the text does not fit in the button.
My recyclerview layout:

Murzify
- 33
- 3
0
votes
1 answer
How to create a grid which you can scroll both vertically and horizontally, which contains random sized elements, and works with recyclerview?
I am a beginner, and i tried to find an answer but everything i found was from 2013 and earlier. I want to create a grid which you can scroll in any direction, (as a zoomed in picture), which contains items of different sizes which are generated…

Imanol
- 1
0
votes
0 answers
Android flexbox layout causes app crashes with AbstractMethodError
I am trying to create a simple Flexbox layout but each time the app is getting crashed with the below error. I am not sure what is the root cause of this. I am using the latest version of Gradle with Java 11 and the latest library.
E/AndroidRuntime:…

Mayank Pandya
- 1,593
- 2
- 17
- 40
0
votes
1 answer
Android: Is it possible to dynamically position views horizontally and vertically at the same time?
I have three custom views (I'll call them boxes), first two boxes needs to be side by side. Each one to utilize 50% of the width with a certain space between them and the third one needs to be on second row(or below these two boxes) utilizing full…

oop
- 124
- 1
- 9
0
votes
1 answer
Android FlexLayout spacing between views
I used a flex layout which has two button. The reason I am using flex layout is because there is a change that the text of the button might increase and if that happens I want to button to be stacked…

pepperlove
- 170
- 14
0
votes
1 answer
How to flexible new line textview and hide an item in FlexboxLayout?
What I want to do is when the description is short, I wanna keep divider and description in the same line.

Jung
- 95
- 1
- 7
0
votes
1 answer
offset set with getItemOffsets disappears after scroll
I have a horizontal RecyclerView which works with a FlexLayoutManager. I also have some decorations set with RecyclerView.ItemDecoration.
My getItemOffsets method looks something like this:
override fun getItemOffsets(outRect: Rect, view: View,…

Uruos
- 83
- 8
0
votes
1 answer
Android RecyclerView GridLayoutManager center items and keep same width
I'm having this RecyclerView configured with a layout manager as:
recyclerView.setLayoutManager(new GridLayoutManager(this, 3));
My specific case is that the child items don't have a predefined width. Instead, I set their width…

user677767
- 203
- 3
- 10
0
votes
1 answer
FlexboxLayoutManager item flickering on scrolling of another Recycler View
I have 2 recyclerView, RecyclerView 1, having layoutManager with app:layoutManager="com.google.android.flexbox.FlexboxLayoutManager" & another RecyclerView 2, having app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager".
The first…

Aman Kumar
- 244
- 1
- 10
0
votes
1 answer
Flexbox doesn't support cardview inside?
I want to create many cardviews inside flexbox layout. But i it always return NullPointerException. What error console said
android.view.InflateException: Binary XML file line #17: Attempt to
invoke virtual method…

Nanda Z
- 1,604
- 4
- 15
- 37
0
votes
1 answer
Android FlexboxLayout can't handle long text and messes the UI
I have the following XML -
…

Alon Shlider
- 1,187
- 1
- 16
- 46
0
votes
1 answer
FlexBoxLayoutManager orientation
I'm working on this project where I need to display some items in columns and for that, I'm using the library from Google FlexBoxLayout.
So far, I've made it to look like this:
View Recycler
x x x x x x x 0 4 8
x x x x x x x 1 5
x x x x x…

JRibera
- 1