Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Can't scroll all the way down #42

Open
kuuuurt opened this issue Dec 8, 2018 · 1 comment
Open

Can't scroll all the way down #42

kuuuurt opened this issue Dec 8, 2018 · 1 comment

Comments

@kuuuurt
Copy link

kuuuurt commented Dec 8, 2018

Here's the skeleton of my XML for the main activity

<CoordinatorLayout>
    <AppBarLayout>
        <Toolbar/>
    </AppBarLayout>

    <FrameLayout/>

    <BottomNavigation/>
</CoordinatorLayout>

The FrameLayout holds a fragment and here's how it looks like:

<ConstraintLayout>

    <RecyclerView />

    <include layout="@layout/base_list_loading"/>

    <include  layout="@layout/base_list_empty"/>

</ConstraintLayout>

The problem is when using your SpannedGridLayoutManager, I'm not able to scroll all the way down. It Can just scroll for like 1/8th of the page.

I also have 3 Item Types:

  • Type 1 - SpanSize(2,3)
  • Type 2 - SpanSize(4,3)
  • Type 3 - SpanSize(4,6)

I can't use (1,1), (2,1), and (2,2) as your library changes the sizes and I need to have the layouts at the ratio for the images. It works when I use these though but then again, I need the sizes to be of that ratio.

Also, In your scrollBy function, the canScrollForward flag returns a false even though I'm haven't fully scrolled down the screen yet.

Would there be a way that we can define the size/ratio of 1 cell so as a SpanSize(1,1) can sort of look like a 2:3 square? Thanks!

@sinarezaei
Copy link

I'm having the same issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants