-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
LayoutManager for RecyclerView #2
Comments
Is there a workaround prior to this enhancement @thagikura ? This is limiting me from using the library because both views I need it for are in scroll/recycler views. |
@jakewilson801 thank you for your interest. If the number of views contained in the FlexboxLayout is not large, it may be acceptable for the memory footprint and the frame rate by simply wrapping the FlexboxLayout by a ScrollView like: <ScrollView>
<com.google.android.flexbox.FlexboxLayout>
<View />
<View />
<View />
....
</com.google.android.flexbox.FlexboxLayout>
</ScrollView> If you observe any performance issues by having a large number of views in the FlexboxLayout, I recommend you to wait for this enhancement, thanks for your patience. |
Awesome thank you so much! @thagikura |
Started development at the dev_recyclerview branch. |
That's awesome! I might be able to help on it cuz I have a widget that needs it right now. What parts are you working through? |
@jakewilson801 thanks for your offer! However I feel writing it by a single person seems more efficient at this moment because the code may drastically change from the current state so I can't split the issue into smaller sub issues. Thanks for your offer though! Regarding your widget, do you expect a large number of items in the widget? As I commented above, if you expect only limited number of items, putting the items in the FlexboxLayout may be acceptable. |
Yeah I'm expecting a range of 0 to 100 elements right now but it could grow with time(Text only no images). I won't be swapping out the layout for a little while. Thanks for starting the work on this though I appreciate it. |
Hi @thagikura :),i wanted to know if it's possible to know the current state of the new Flexbox LayoutManager ? i have seen the branch dev_recyclerview and it seems that a good progress has been made there, but i don't know if it will be ready soon for being merged into the master. |
Hi @LetaiefAymen, The plan is to launch the FlexboxLayoutManager as an alpha version first before merging it to the master since it's not as stable as the FlexboxLayout yet. Thanks! |
The FlexboxLayoutManager is now released as an alpha version.
Please check the Recycler integration page or the sample project using the FlexboxLayoutManager. Once the code is merged to master, I'll close this issue. |
When compiling a signed apk with alpha1 I get the following errors.
|
Closing this. RecyclerView integration has been merged to master. |
FlexboxLayout is implemented as a subclass of the ViewGroup, so view recycles are not considered when used as a scrollable view (e.g. wrapped with the ScrollView).
Adding a new class as a subclass of RecyclerView.LayoutManager is more useful in that situation to take view recycles into account.
The text was updated successfully, but these errors were encountered: