yes there is a simple way to stop scrollview to scroll you can do it like this:-
scrollview.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { return !enable; }}); when you set enable variable to true it will start scrolling and when you set it to false it stop scrolling. On Monday, 10 August 2009 14:20:48 UTC+5:30, rukiman wrote: > > Just wondering if there is an easier way to simply stop ScrollView > from being scrolled via touch inputs? I will programmatically get the > ScrollView to scroll to top or bottom. > > As a last resort, I guess I will have to inherit from ScrollView and > capture all the ontouch events. But wondering if there is an easier > way before I take this approach? > > Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en