pinned-section-listview icon indicating copy to clipboard operation
pinned-section-listview copied to clipboard

PinnedSectionListView with Overlay mode on

Open keiththompson opened this issue 10 years ago • 4 comments

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.

keiththompson avatar Sep 15 '14 13:09 keiththompson

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.

sergejsha avatar Sep 15 '14 14:09 sergejsha

@beworker Awesome, thanks.

keiththompson avatar Sep 15 '14 14:09 keiththompson

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

jianghao1123 avatar Oct 02 '14 06:10 jianghao1123

+1

mediavrog avatar Jan 13 '15 15:01 mediavrog