Questions tagged [constraintlayout-flow]

9 questions
7
votes
2 answers

Is there any way of using ConstraintLayout's Flow helper widget programmatically?

I want to use ConstraintLayout's Flow widget but when I search I can't find any example about using Flow widget programmatically. How can I set constraint_referenced_ids programmatically?
hugerde
  • 919
  • 1
  • 12
  • 27
1
vote
1 answer

Constraint layout flow vertical align

I have the above UI to create and I am using flow to align the views
WISHY
  • 11,067
  • 25
  • 105
  • 197
1
vote
0 answers

ConstraintLayout Flow wrapping

I want to show an unknown number of elements (more than 1, less than 15) in a specific order as it is shown by the following image. The elements G and H should not be shown to the user. The area should not be scrollable as well. The rendering…
LiTTle
  • 1,811
  • 1
  • 20
  • 37
0
votes
0 answers

Horizontal margin does not apply to the item in a ConstraintLayout vertically aligned by Flow

I have a ConstraintLayout where I vertically align items via Flow.
Tartar
  • 5,149
  • 16
  • 63
  • 104
0
votes
0 answers

How to limit the number of line of a constraint layout flow?

I want to display a set amount of lines of buttons in view. I have no clear limit in how many buttons I want to add. It just should show on X lines in the UI. I used a Constraint layout with a Flow helper which allow me to display the buttons side…
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…
0
votes
1 answer

How to get all children/referenced views inside a ConstraintLayout's Flow helper

I'm trying to adjust something (color, text, visibility or etc) to a group of Buttons inside a ConstraintLayout which are grouped using a Flow helper. Since Flow or more accurately ConstraintLayout doesn't nest child Views inside itself using a…
0
votes
1 answer

Android: How to display text at the left/right side and also at the bottom position of an image?

Thanks in advance... I'm learning Android development with best practices, but I'm facing some issues regarding the development, I hope this community will guide me to become professional android developer. What I Want: I want to display text on the…
0
votes
1 answer

Add buttons programmatically to Flow of ConstraintLayout?

I have seen the code for adding buttons to a ConstraintLayout in an existing question, but how do I do that with a Flow? That is, I do not want to define the top/left of the button relative to the ConstraintView itself, but I want the buttons to be…
Damn Vegetables
  • 11,484
  • 13
  • 80
  • 135