I am trying to scroll a HorizontalScrollView by 2 buttons, one left, one right. What am i doing wrong? Which one to choose?
sw - scroll view public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub switch(v.getId()){ case R.id.bRight: sw.smoothScrollBy(20, 0); break; case R.id.bLeft: sw.smoothScrollBy(-20, 0); break; } return false; } public boolean onLongClick(View arg0) { // TODO Auto-generated method stub switch(arg0.getId()){ case R.id.bRight: sw.smoothScrollBy(50, 0); break; } 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