AndroidAutoScrollListView icon indicating copy to clipboard operation
AndroidAutoScrollListView copied to clipboard

Regarding AutoScrolling

Open ghost opened this issue 10 years ago • 6 comments

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

ghost avatar Jun 23 '15 12:06 ghost

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.

blessanm86 avatar Jun 23 '15 14:06 blessanm86

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 avatar Jun 24 '15 05:06 ghost

Could you please reply me.

ghost avatar Jun 25 '15 04:06 ghost

@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; }

alphaDroid89 avatar Sep 11 '15 15:09 alphaDroid89

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

ghost avatar Sep 12 '15 07:09 ghost

@chayan1988 did you get any solution?

pratikbutani avatar Nov 09 '15 13:11 pratikbutani