blessanm86 / AndroidAutoScrollListView

This is a continuous slider project. It smoothly slides through the same set of images repeatedly.
48 stars 27 forks source link

Regarding AutoScrolling #2

Open ghost opened 9 years ago

ghost commented 9 years ago

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

blessanm86 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

Could you please reply me.

alphaDroid89 commented 9 years ago

@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 commented 9 years ago

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" notifications@github.com 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 https://github.com/blessenm/AndroidAutoScrollListView/issues/2#issuecomment-139570411 .

pratikbutani commented 9 years ago

@chayan1988 did you get any solution?