sergejsha / pinned-section-listview

Easy to use ListView with pinned sections for Android.
2.59k stars 808 forks source link

PinnedSectionListView with Overlay mode on #53

Open keiththompson opened 10 years ago

keiththompson commented 10 years ago

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.

sergejsha commented 10 years ago

I will try to fire it out.

On Mon, Sep 15, 2014 at 3:50 PM, Keith Thompson notifications@github.com 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.

keiththompson commented 10 years ago

@beworker Awesome, thanks.

jianghao1123 commented 10 years ago

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); } }

mediavrog commented 9 years ago

+1