android - Restrict the scroll up of list view after a particular row -
the title little confusing allow me explain problem ,i have info in list view , scrollable , there no issue in sort of problem.my requirement while scroll , illustration list views first visible portion 2 should stop scroll up.but can scroll down,its restring scroll of list view after particular row first visible item in list view.i tried of code has problem disable entire scroll cant scroll downwards list view utilize method disable scroll of listview
public void enabledisableview(view view, boolean enabled) { view.setenabled(enabled); if (view instanceof viewgroup) { viewgroup grouping = (viewgroup) view; (int idx = 0; idx < group.getchildcount(); idx++) { enabledisableview(group.getchildat(idx), true); } (int idx = 0; idx < group.getchildcount(); idx++) { enabledisableview(group.getchildat(idx), true); } } } i used
mlistview.setselectionfromtop(1, 0);,smooth scroll etc
but not works.is there thought or solution accomplish aim.
thank you
android android-listview scroll android-viewpager
No comments:
Post a Comment