android - How to horizontal listview scrolling control? -
in horizontal listview when swipe 1 once, scrolling working should be, need after 1 swipe, next list item shown.(just trimmedia preview in android )
you have override fling method of listview. method "fling" used emulate inertia of list when remove finger screen. if method empty, has effect scroll on next item. here example:
import android.content.context; import android.widget.horizontalscrollview; public class mylistview extends horizontalscrollview { public mylistview(context context) { super(context); } @override public void fling(int velocityx) { //super.fling(velocityx); } }
i didn't test it's how did in little more complex on project.
Comments
Post a Comment