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

Regarding AutoScrolling #2

Open
ghost opened this issue Jun 23, 2015 · 6 comments
Open

Regarding AutoScrolling #2

ghost opened this issue Jun 23, 2015 · 6 comments

Comments

@ghost
Copy link

ghost commented Jun 23, 2015

Autoscrolling(circular scrolling) is not working in lollipop version.Could you please help me out

@blessanm86
Copy link
Owner

Whats the error? I may be able to give some guidance on fixing this. I dont work on android anymore and dont have android dev environment setup on my machine. Sorry.

@ghost
Copy link
Author

ghost commented Jun 24, 2015

Appreciate for reply me back.basically i wanted to continue that animation with scroll image list like circular.I mean image animation should be continue forever until unless not press back button.

Error:--here Autoscrolling animation should be continue.in last image in getting stop but need to start again from first.

Please give me some clue or any idea

@ghost
Copy link
Author

ghost commented Jun 25, 2015

Could you please reply me.

@alphaDroid89
Copy link

@chayan1988:

I used the following logic for endless scrolling

public void moveScrollView() {

    // ********************* Scrollable Speed ***********************

    scrollPos = (int) (horizontalScrollview.getScrollX() + 1.0);
    if (scrollPos >= scrollMax) {
        Log.v("childCount", ""+scrollMax); 
        addImagesToView();
        getScrollMaxAmount();
    }
    horizontalScrollview.scrollTo(scrollPos, 0);
}

public void getScrollMaxAmount() {
int actualWidth = (horizontalOuterLayout.getMeasuredWidth() - getWindowManager().getDefaultDisplay().getWidth());
scrollMax = actualWidth;
}

@ghost
Copy link
Author

ghost commented Sep 12, 2015

Hiii

Its working . but my requiremtn is after scroll max it should again start
from scroll position and it should continue animation .
On 11 Sep 2015 8:37 pm, "SkyNite" [email protected] wrote:

@chayan1988 https://github.com/chayan1988:

I used the following logic for endless scrolling

public void moveScrollView() {

// ********************* Scrollable Speed ***********************

scrollPos = (int) (horizontalScrollview.getScrollX() + 1.0);
if (scrollPos >= scrollMax) {
    Log.v("childCount", ""+scrollMax);
    addImagesToView();
    getScrollMaxAmount();
}
horizontalScrollview.scrollTo(scrollPos, 0);

}


Reply to this email directly or view it on GitHub
#2 (comment)
.

@pratikbutani
Copy link

@chayan1988 did you get any solution?

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

No branches or pull requests

3 participants