yarolegovich/DiscreteScrollView

Dependent on size of first item in adapter

Open

#20 opened on May 10, 2017

View on GitHub
 (10 comments) (23 reactions) (0 assignees)Java (5,728 stars) (768 forks)batch import
help wanted

Description

Problem : all list items take up the size of the first item in the adapter list - this is a terrible assumption for a generic library like this one!

My adapter has a header of toolbar height ?android:attr/actionBarSize and then a list variable length images - something like facebook's newsfeed. I ended up with a vertical stack of lots of items, all of the same toolbar height.

Is ther an easy fix to this? I haven't gone through the code yet, hence not aware of how much effort this would require.

Contributor guide