Questions tagged [android-flexboxlayout]

FlexboxLayout is a library project which brings the similar capabilities of CSS Flexible Box Layout Module to Android.

74 questions
2
votes
1 answer

adding view programmatically blocking the main thread

There is a flexboxlayout in my UI and I want to dynamically add textviews to it. Please find the code below. private void addOption(String option) { new Thread(new Runnable() { @Override public void run() { TextView…
Anjula
  • 1,690
  • 23
  • 29
2
votes
1 answer

Android FlexboxLayout : android:animateLayoutChanges not working when child view resized

I added this option to my FlexboxLayout for had animation when children move : android:animateLayoutChanges="true" Unfortunately child view are animated only when I add child, but not when one child is resized! Have you got any idea to always have…
fingerup
  • 4,828
  • 2
  • 16
  • 22
2
votes
1 answer

Prevent RecyclerView from recycling

I'm using FlexboxLayoutManager in RecyclerView and I need to prevent RV from recycling. I tried to set itemViewCacheSize() to total items count, but it didn't help. Also I tried to set maxedRecycledViews() to 0 with no result. How can I prevent RV…
1
vote
0 answers

Android nested RecyclerView with LinearLayoutManager and FlexboxLayoutManager not working properly

I am facing multiple challenges while trying to develop a search result filter page. The search results can be filtered with a selection of multiple filters per filter category. There can be up to 30+ filter categories and each of them can have up…
1
vote
0 answers

Row Count of FlexboxLayout changes in Recycler view After Data changes Call

I have a recycler view with flex layout, when the Notify data change is called the flex layout changes the row count to 3 from 4 and the text gets a break. Below is the code to set the Flex layout. layoutManager = new…
1
vote
0 answers

how to have a flexible flow Layout with show more Items in Android

My Requirement is to create a layout like one in the image below I can use the flexbox-layout library but the issue comes I only need to have 2 rows shown at first for example like the image above the layout will be restricted to show items at two…
1
vote
1 answer

Display many views efficiently in a FlexboxLayout

My goal is to efficiently display a lot of TextViews (with background) in a FlexboxLayout (or something similar). I want to display information about actors and crew members from a movie in a kind of 'tag'-layout style How the layout looks like (one…
1
vote
0 answers

How to invert the filling of the recycleview using FlexboxLayou?

I'm using FlexboxLayou in my project, but I can't reverse the data taken from the firebase, I want it in decreasing order. I tested: Collections.reverse (list); it works, not using FlexboxLayou, but as my project has different layouts the best…
1
vote
1 answer

Android - RecyclerView items aren't visible after orientation change

I'm using in my app the Conductor framework. The app in general is fixed in portrait state, but I have 2 Controllers that use ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR and respond to device orientation changes Controller A - shows a summary of…
1
vote
2 answers

How center "TextView" in flexbox?

I try to center text in a FlexboxLayout. I use this lib com.google.android:flexbox:0.2.5. I have several text in column. I try many method to put them in midle of that column without success.
user11714076
1
vote
1 answer

How to make FlexboxLayout scroll?

I am using Android FlexboxLayout in one of my Activities, but when the content is larger than my screen, I cannot scroll there to see it. All examples seem to scroll be default, but it just doesn't do that in my code. The XML is like this:
Bart Friederichs
  • 33,050
  • 15
  • 95
  • 195
1
vote
0 answers

Android FlexBox-Layout Customize - Column Standard Limit

I use Flexbox-Layout. I want to restrict with the Column Standard Limit. When the application was first loaded, I managed to run the formula in the image. Default Activity Screenshot. However, when the filter runs, there is deterioration.…
AOK
  • 118
  • 1
  • 1
  • 11
1
vote
0 answers

how to group all Categories in FlexboxLayout

I have this type of Json: [ { "title": "title1", .... "category": "tag1" }, { "title": "title1", .... "category": "tag2" }, { …
0
votes
0 answers

Absolute position TextView inside a FlexBox Android

I want to position a TextView centered horizontally from his parent but I don't want the parent to get the width of this TextView. I also want that TextView to grow outside the parent width if it's bigger than the parent. I want to do like a…
0
votes
0 answers

How to know number of lines/rows in FlexboxLayout android

I'm using FlexBoxLayout in android and want to know the number of rows or lines occupied. I have added multiple textviews in this flex layout dynamically. Have tried this solution binding.flexLayout.flexLines.size but it return the number of items…