Last active
December 27, 2015 23:29
-
-
Save carolineleung/7405978 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void adjustScroll(int tabBarTop) { | |
if (tabBarTop == 0 && mListView.getFirstVisiblePosition() >= 1) { | |
// ListView does not need to adjust scroll, as the top tab bar is its sticky position | |
return; | |
} | |
mListView.setSelectionFromTop(1, tabBarTop); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment