Comments (5)
Thanks for clarifying.
LayoutManagers are set to the recyclerview. So unfortunately, this library doesn't support the use case of multiple layout managers.
from multiviewadapter.
I've already tried to use setSpanCount for the section objetcs, but nothing happens. Also, tried to override getSpanSize, but this does not make a difference too :/
from multiviewadapter.
Hi,
GridLayoutManager supports only the column count (span) and doesn't consider the row count. Even StaggeredGridLayoutManager will not help in this case. You need to build your own layout manager. You can take look here for some inspiration - https://lucasr.org/2014/07/31/the-new-twowayview/
As far as the library is concerned, span concept is based upon the default layout managers. But if you create/use a custom layout manager, you can extend the library classes and use it.
from multiviewadapter.
Actually, my question was: can I, somehow, use a LayoutManager for sections and a different one for ListSections? If so, that would solve my problem, I could use LinearLayoutManager or GridLayoutManager for sections and SpannedGridLayoutManager for section items!
from multiviewadapter.
Oh, that's a shame :/
But thank you very much anyway, that's a great library!
from multiviewadapter.
Related Issues (20)
- Can I add multiple binder with same DataModel? HOT 2
- Failed to resolve: dev.ahamed.mva2:adapter:3.0.0-beta01 HOT 1
- Support for selectAll function into a Section HOT 1
- Support for select specific item from section HOT 3
- Does it have Firestore support? HOT 1
- Save persistent state HOT 1
- [Question] Disabling default animations
- InfiniteScroll not working for horizontal recycler view HOT 1
- Persistent item position in RecyclerView using drag and drop
- Unable to provide our own PositionType within a section.
- Add android view binding support HOT 2
- InfiniteLoadingHelper and StaggeredGridLayoutManager
- Layout manager: reverseLayout HOT 2
- IllegalStateException when loading items
- How can I update the item in a TreeSection?
- TreeSection.getChild(0) crashes! This actually return an item section.
- Section is already has a parent!
- Diffutil HOT 1
- MultiViewAdapter not working views are not showing up
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multiviewadapter.