Sitelet https://github.com/DevAhamed/MultiViewAdapter/issues/99
Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

How to use another LayoutManager for sections? #99

Description

@JGeraldoLima

I currently have an app that has a custom layout for the headers, and I need to use SpannedGridLayoutManager to replicate the Instagram Search Page behavior: 1x1 size for picutre items, 2x2 for video ones.

How can I achieve that?

Here is a print of how the screen is looking like:

image

In the header layout, there is no space under the green date badge, it is height fixed by the SpannedGridLayoutManager. I've already tried very hard to change this height in the viewHolder implementation, but no success. When I use GridLayoutManager, as in the sample, works fine, but the views are not organized:

photo5131993973622155278

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions