pinned-section-listview
pinned-section-listview copied to clipboard
PinnedSectionListView with Overlay mode on
Has anybody managed to get this working with Overlay mode on? The pinned section doesn't take the height of the ActionBar into account when it's scrolling to position at the top of the screen.
I will try to fire it out.
On Mon, Sep 15, 2014 at 3:50 PM, Keith Thompson [email protected] wrote:
Has anybody managed to get this working with Overlay mode on? The pinned section doesn't take the height of the ActionBar into account when it's scrolling to position at the top of the screen.
— Reply to this email directly or view it on GitHub https://github.com/beworker/pinned-section-listview/issues/53.
@beworker Awesome, thanks.
you can setPadding when onScroll just like if (mActionBarHeight > 0) { if (Math.abs(getChildAt(0).getTop()) >= getChildAt(0) .getHeight() - mActionBarHeight) { setPadding(0, mActionBarHeight, 0, 0); } else if (getFirstVisiblePosition() == 0) { setPadding(0, 0, 0, 0); } }
+1