Questions tagged [flowlayout]

Flow layout places components left to right and then top to bottom, allocating just enough place for each component.

Flow layout is similar to table layout but it allocates just enough width for each component. It has no "columns" because the width of the cells is most often different for every row. The difference between flow and table layout is less obvious when flow layout only has a single row (a quite common case in GUI).

345 questions
8
votes
0 answers

UICollectionView self sizing cells. Insert/reloadData breaks layout

Writing this question as my last resort, being stuck on this for few days now. I am trying to implement self sizing cells for UICollectionView with FlowLayout. Everything seem to work fine until I reladData() or do insertItemsAtIndexPaths() while…
8
votes
1 answer

Can we set different flowlayout in different sections within a UICollectionView?

Here is the picture for explanation http://childhoodgamedev.qiniudn.com/xincheng_demo.png Question Description In section 0, the flowlayout is common, like a grid, in section 1, the flowlayout is circular (They are in a UICollectionView). The…
ChildhoodAndy
  • 436
  • 3
  • 11
7
votes
3 answers

Get preferred size of multi-line flowlayout

I can't figure out a way to resize some components in a swing GUI. Some custom labels are being added to a FlowLayout which doesn't behave how they should when resizing the dialog. The panel is being built using the jgoodies forms framework. If…
Philippe
  • 1,949
  • 4
  • 31
  • 57
7
votes
1 answer

How to implement a flowlayout in ExtJS 4?

I want to use a layout where components are added horizontally like hbox but where upon adding if the component exceed the bounds of the container it is moved to the next line. This is similar to what FlowLayout is in swing and flex. I couldn't find…
user308808
7
votes
3 answers

How to set UICollectionView bottom padding and scrolling size

Hello I have working uicollectionview custom layout and i have issuesfor bottom padding and scrolling sizes. Under below picture you can see; Also top side first cell always stays on top when scrolling ( Left side cell must be always stay right now…
SwiftDeveloper
  • 7,244
  • 14
  • 56
  • 85
7
votes
2 answers

How to place components at specific positions?

How to place components in layout on specific position. Like I want to place 2 text boxes in first row, below 3 combo boxes. But when I am trying to put they all appear in one line and I have used flowlayout. I have used the border as well. When I…
Ravi
  • 401
  • 2
  • 8
  • 12
6
votes
4 answers

Java Swing: FlowLayout JPanels are sitting next to each other?

I have three JPanels painted onto a JFrame. These are currently all set to use the default FlowLayout. I would like for these to be one above the other in a single column. However, I am finding that these are floating next to each other on the same…
Ben
  • 61
  • 1
  • 2
6
votes
1 answer

How to move components to next line in FlowLayout?

I am adding components in JPanel which is set as FlowLayout, they are not moving on next line even there is no space in left in that line. Here is the screenshot of the problem import javax.swing.*; import java.awt.*; import…
Fawad Bin Tariq
  • 164
  • 1
  • 3
  • 16
6
votes
2 answers

Android FlowLayout as RecyclerView LayoutManager

I want to implement a Tag Cloud with Android Chips. But i think the best way to do this is with a RecycleView and a custom LayoutManager. I search for a LayoutManager which layout its children like a FlowLayout but found nothing. Has someone found…
Happo
  • 1,375
  • 3
  • 16
  • 34
6
votes
3 answers

Does anyone know how to do flow layout using RecyclerView?

Does anyone know how to do flow layout using RecyclerView? How to change span count dynamically? Answer :
Bincy Baby
  • 3,941
  • 5
  • 36
  • 62
6
votes
1 answer

Why can't a BoxLayout be shared whereas a FlowLayout can?

I am confused by the following. Case A Set the layout manager for a JFrame as a BoxLayout. Add a JButton to the JFrame container. Compile. Run. Exception thrown: "Exception in thread "AWT-EventQueue-0" java.awt.AWTError: BoxLayout can't be…
danger mouse
  • 1,457
  • 1
  • 18
  • 31
6
votes
2 answers

QScrollArea widget is not expanding with a Flowlayout

I have a ui with a QScrollArea Widget. The QScrollArea uses a Flowlayout. My problem is when I add widgets to my layout the scroll area begins to scroll and does not expand when it has room to expand. I want the scroll area to expand to its limit…
andre
  • 7,018
  • 4
  • 43
  • 75
6
votes
2 answers

How do I create a Tiling layout / Flow layout in TkInter?

I want to to fill my window with, say, labels and I want them to wrap once the column would be bigger than the current window (or rather parent frame) size. I've tried using the grid layout, but then I have to calculate the size of the content of…
devsnd
  • 7,382
  • 3
  • 42
  • 50
5
votes
3 answers

Java Swing FlowLayout Alignments

I'm fairly new to Java and I'm trying to create a GUI application with some labels, buttons, and textfields. The program is pretty simple and I just wanted to use a default layout, which is FlowLayout. I managed to place and size everything fine,…
Dennis
  • 3,506
  • 5
  • 34
  • 42
5
votes
1 answer

FlexboxLayout - Show tag or Chip or label count at the end of second line android

I am using FlexboxLayout for showing chips in android but stuck at UI Where I want to show number of chips count at the end of second line as per below screenshot As per above design I want to show chips until second line and the chips that not fit…
1
2
3
22 23