-
Notifications
You must be signed in to change notification settings - Fork 370
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
Support for 'RecyclerView' #59
Comments
Continuing the discussion of #39. The RecyclerView is a component created to replace the "ListView" and "GridLayout". It works with Adapters and also LayoutManagers. The Adapters is designed to provide the data source, as well as in the ListView. The LayoutManagers are responsible for organizing the items on the screen. Standards implementations are: LinearLayoutManager, GridLayoutManager, and StaggeredGridLayoutManager. See examples here: https://guides.codepath.com/android/Using-the-RecyclerView One problem that has been found to apply the function "FlowLayout", ie making the number of columns is dynamic, according to the screen size. To solve, I applied this workaround: http://stackoverflow.com/questions/26666143/recyclerview-gridlayoutmanager-how-to-auto-detect-span-count Then I had the idea of creating a "FlowLayoutManager", so you can use the RecyclerView and all the advantages it provides. So I asked you if you had plans, because I believe that you can leverage the knowledge applied to FlowLayout. This would also solve the question #14. If I can help with anything else, I have little free time, but I am available. |
Hi, You may try to use recycler view now. It is still not using all power of recycler view like scrolling or actual view recycling, but all original FlowLayuot functionality is there. Thanks. |
Yes, I did tests with RecyclerView and it worked great! The next step really is scrolling and recycling of views. For example, I have cases in my list has 48 items, but only 2 are displayed at a time. When this runs Thanks for your time, it's getting very good, I believe that with that the library will cover a lot of users! |
Even with view recycling notifyDataSetChanged() will redraw all 48 items. You should use notifyItemChanged(int position) or similar to update just the needed views. |
In In my case, using the For the |
@ApmeM just tried master
|
Rolling back to commit |
Any updates on FlowLayoutManager ? When I use notifyDataSetChanges() or notifyItemChanged() is scrolled back to the top. |
@eshkoliGilad Please, create a new issue for a new question. Tip: dont mention a user in your question to get attention. |
This is somewhat related to the issue. onLayoutChildren is called again when updating the data set and I can't for my life seem to be able to get recycling to work with scroll like in other LayoutManagers. Any solution for this issue ? Edited: Why not mention user if what I'm writing is referring to him ? |
…tion See comment here: ApmeM#59 (comment) , also issue ApmeM#60.
@niqo01 hi, do you find reason for problem with cell3 and cell4? |
@eshkoliGilad hi. Have you fixed this issue ? |
Add support for RecyclerView LayoutManager.
The text was updated successfully, but these errors were encountered: