I don't think so. This viewpager is for dragging. On Jan 24, 11:23 pm, Marcelo Henrique <marceloh...@gmail.com> wrote: > you need viewpager > > http://android-developers.blogspot.com/2011/08/horizontal-view-swipin... > > http://developer.android.com/reference/android/support/v4/view/ViewPa... > > 2012/1/24 Oliviu Vais <oliviu.v...@gmail.com> > > > > > > > > > > > I thought it's clear enough. I have a HorizontalScrollView at the > > bottom of my screen. I want to scroll it left and right by using 2 > > buttons that are on each side(one for left scroll, one for right). I > > do not need help in setting the Xml. I need help for the Java class, i > > cant get my buttons to scroll continous, they scroll only once when i > > click them. I need them to scroll to the end of the View but not at > > once, in little continous steps. This is what i have so far: > > > 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; > > > On Jan 24, 9:42 pm, Marcelo Henrique <marceloh...@gmail.com> wrote: > > > xml logcat > > > > <?xml version="1.0" encoding="utf-8"?> > > > <ScrollView android:id="@+id/ScrollView02" > > > > android:layout_width="wrap_content" > > > > android:layout_height="wrap_content" > > > > xmlns:android="http://schemas.android.com/apk/res/android"> > > > <HorizontalScrollView android:id="@+id/HorizontalScrollView01" > > > > android:layout_width="wrap_content" > > > > android:layout_height="wrap_content"> > > > <ImageView android:id="@+id/ImageView01" > > > > android:src="@drawable/pic" > > > > android:isScrollContainer="true" > > > > android:layout_height="fill_parent" > > > > android:layout_width="fill_parent" > > > > android:adjustViewBounds="true"> > > > </ImageView> > > > </HorizontalScrollView> > > > </ScrollView> > > > > 2012/1/24 TreKing <treking...@gmail.com> > > > > > On Mon, Jan 23, 2012 at 9:18 AM, Oliviu Vais <oliviu.v...@gmail.com > > >wrote: > > > > >> What am i doing wrong? > > > > > Well you didn't really explain what the problem is. "I'm trying to do > > X" > > > > is not a problem. > > > > > What have you debugged and learned so far? What is actually not > > working? > > > --------------------------------------------------------------------------- > > ---------------------- > > > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > > > > transit tracking app for Android-powered devices > > > > > -- > > > > 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 > > > > -- > > > - Marcelo Henrique - > > > "Se não puder se destacar pelo talento, vença pelo esforço." (Dave > > > Weinbaum) > > > -- > > 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 > > -- > - Marcelo Henrique - > "Se não puder se destacar pelo talento, vença pelo esforço." (Dave > Weinbaum)
-- 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