Questions tagged [android-flexboxlayout]

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

74 questions
0
votes
1 answer

Android Flex Layout set flexBasisPercent?

I'm using Google's FlexBoxLayout for a project, and I cant make flexBasisPercent work for the view that I defined progmatically. The root view is declared as, val root = FlexboxLayout(context) root.layoutParams =…
user5170375
0
votes
1 answer

CSS of mat-sidenav-container broken on safari

I am using a mat-sidenav-container. My codes run properly on İE, Chrome, Firefox. but broken only on safari; app-header must be on top and fixed .but it doesn't seem on top. I think this error is about the position:absolute. but I can't solve …
necati
  • 187
  • 1
  • 10
0
votes
1 answer

How should I avoid to grow the last item to full width ? FlexBoxLayoutManager

I want the items of the recyclerview to stretch equally and distribute the space equally, It working fine but the last item of the recyclerview is stretching in full width, I want it to stretch like the item above and stay at the start Following is…
0
votes
1 answer

Crash when dynamically change LayoutManager to FlexboxLayoutManager

I have to use both LinearLayoutManager or FlexbotLayoutManager depends on childs size in RecyclerView. When I change LinearLayoutManager to FlexbotLayoutManager dynamically like: recyclerView.layoutManager = …
Andrey Danilov
  • 6,194
  • 5
  • 32
  • 56
0
votes
1 answer

How to control the item count in each line by Android flexboxlayout?

I want to use android flexboxlayout to achieve UI like this: Put some items in a layout and each line has 3 items. I do not find a way to control the item count in each line. Any one can help on this? Many thanks!
niu yi
  • 327
  • 1
  • 2
  • 6
0
votes
1 answer

Content not getting displayed in FlexboxLayout

I'm using below xml code to display textviews automatically to next line when there is no space in a row, but nothing is getting displayed in output. Can anyone help in this.
Sabir Syed
  • 422
  • 3
  • 19
0
votes
0 answers

Is it possible to show on the screen only one row(not a grid) of items inRecycleView with FlexboxLayoutManager

If it is possible to define RecycleView with FlexboxLayoutManager to show on the screen only one line(row) instead of grid(two dimensions - row and column)
Alex B
  • 3
  • 4
0
votes
1 answer

Adding view to flexboxlayout

At the click of a button, I create one textview programmatically and add them to flexboxlayout. Why is only one view added? mButton.setOnClickListener(new View.OnClickListener() { int i = 1; @Override public void onClick(View…
user8110876
0
votes
0 answers

Issue with Android Spinner inside RecyclerView items

I have an issue with showing RecyclerView elements inside RecyclerView. When I selected the item inside prelast Spinner(1st pic), the last one (Spinner) disappeared(2nd pic.). What could be the main reason? Every word is TextView. LayoutManager for…
0
votes
1 answer

How i can scroll using key in recyclerview?

i had problem about recyclerview in that picture blue is recyclerview and yellow is now focus imageview when i use keydown, i want scroll down, so want to show green imageview but it didnt walk how i can solve it? main activity is …
0
votes
0 answers

FlexboxLayout count lines

I need to add views programmatically to FlexboxLayout and for each view added check if it created a new row or not. How can I get Row count? Tried: for (int i = 0; i < 100; i++) { flexboxlayout.add(createView(this.getContext(), i)); …
Bugdr0id
  • 2,962
  • 6
  • 35
  • 59
0
votes
1 answer

How can I set the FlexBox.alignItems to flex_end programatically?

I know how to do it in xml app:alignItems="flex_start" But I don't know were to find the reference to flex_end programmatically. For example this code (in kotlin) makes the entire layout blank. But when I search the project for "flex_box" the…
Dan Anderson
  • 1,062
  • 13
  • 26
0
votes
1 answer

FlexboxLayoutManager setFlexDirection.ROW is not working

The problem is that all items show one item per row. like this: | item | | item | | item | I want to show them like this: | item item | | item | | | I have explicity set the width of items to 148dp. It was working…
0
votes
1 answer

How we can use FlexboxLayout for API 14

I want to use FlexboxLayout for API 14 but i have faced some issue with ViewCompat class means ViewCompat.combineMeasuredStates method not available for api 14. so how i can use this ?
ViramP
  • 1,659
  • 11
  • 11
1 2 3 4
5