Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrolling view #11

Open
KaustubhSatam opened this issue Feb 4, 2017 · 1 comment
Open

scrolling view #11

KaustubhSatam opened this issue Feb 4, 2017 · 1 comment
Assignees

Comments

@KaustubhSatam
Copy link

i want to show last item first and then the scrolling starts downwards any help where do i do the changes in your code for eg: i want to start from item 9 and scroll down for rest of the cards till item 0

@ZieIony ZieIony self-assigned this Apr 17, 2017
@zhaozihanzzh
Copy link

zhaozihanzzh commented Jul 22, 2018

For me, I use this:
boolean isFirst = true;
@Override
protected void dispatchDraw(Canvas canvas) {
if (isFirst) {
scroll = getMaxScroll();
……
isFirst = false;
}
And it seems to work well. Maybe you can look at mine: https://github.com/MeCreationTeam/ME_MaterialRecent/blob/master/src/tk/zielony/materialrecents/RecentsList.java (I don't really understand why this way works, I'm just a learner.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants