-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Center Justify #8
Comments
I'll try to take a look into that over the weekend. Maybe I'll add some sort of weight system similar to stock android |
@blazsolar No I was thinking the same thing really, either that or when the new line is created, add the children to a LinearLayout and center that within the FlowLayout. I think technically both would work? |
Yea, they would both work, but if you add LinearLayout to it you have one extra level in your layout hierarchy which is bad for for performance reasons. |
Hey @blazsolar, so I actually was already using the flow layout from "ApmeM" and realized it was a fairly easy process to create a center justification setting, so I sent him a pull request which you can find here. |
Hey @blazsolar here is another newer library which is doing it using weights: https://github.com/suanmiao/flowlayout |
because this issue I decided to make https://github.com/ahmadmuzakki29/justify-layout. automatically wrap to new line, and re-arrange child to justified. |
Would love to see a center justified option for this FlowLayout! I'd create a pull request, but just don't have the time right now.
The text was updated successfully, but these errors were encountered: