FlowLayout icon indicating copy to clipboard operation
FlowLayout copied to clipboard

Request: please show how to use with adding more and more views

Open AndroidDeveloperLB opened this issue 6 years ago • 0 comments

It is said in the description:

"The layout manager places cells on a linear path and fits as many cells along that line as it can. When the layout manager runs out of room on the current line, it creates a new line and continues the layout process there. "

Can you please show a sample of putting views programmatically, so that it adds each on the current line, till there is no more space and it goes to the next?

It's just that in the current sample, you define the columns (using getProportionalSizeForChild), and this loses the point of using it, because it should be automatic, as each line could have a different number of views, with various sizes.

AndroidDeveloperLB avatar Mar 13 '18 08:03 AndroidDeveloperLB