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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -