I still want to scroll the view to the right or left using two buttons in my app. I got this far, but this doesn't work. Please help!!!!!!
public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub if(v.getId() == MotionEvent.ACTION_DOWN){ scroll = 1; }else if(v.getId() == MotionEvent.ACTION_UP){ scroll = 0; } switch (v.getId()) { case R.id.bRight: while (scroll == 1) { sw.scrollBy(5, 0); } case R.id.bLeft: while (scroll == 1) { sw.scrollBy(-5, 0); } } return false; } -- 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