List of usage examples for android.widget ListView getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:Main.java
public static void scrollByOffset(ListView v, int off) { //v.smoothScrollByOffset(pos); try {/*from w w w . ja v a2 s . c o m*/ Method m = v.getClass().getMethod("smoothScrollByOffset", new Class[] { int.class }); m.invoke(v, off); } catch (Exception e) { } }
From source file:Main.java
public static void scrollToPosition(ListView v, int pos) { //v.smoothScrollToPosition(pos); try {/* w w w .j a va2 s . co m*/ Method m = v.getClass().getMethod("smoothScrollToPosition", new Class[] { int.class }); m.invoke(v, pos); } catch (Exception e) { } }