Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

PinnedSectionListView with Overlay mode on #53

Open
keiththompson opened this issue Sep 15, 2014 · 4 comments
Open

PinnedSectionListView with Overlay mode on #53

keiththompson opened this issue Sep 15, 2014 · 4 comments

Comments

@keiththompson
Copy link

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
Copy link
Owner

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
#53.

@keiththompson
Copy link
Author

@beworker Awesome, thanks.

@jianghao1123
Copy link

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
Copy link

+1

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

4 participants