Hi, i worked on this. i attached the file here. now the problem is how to stop scroll view at the horizontal scrollview item. it always stop first and last item of the horizontal scroll view. how to calculate velocity of scrolling.
On Sun, Jan 13, 2013 at 9:32 AM, jason_gates <jason.gates...@gmail.com> wrote: > Hi, > No problem :) Thank you for the reply. > > Sorry, but I don't understand what you mean by "stop"? Does that mean stop > the view from scrolling? Change the position of the view? Change the > alignment of the view's content? > > My recommendation is, post the relevant portion of your code. Then in your > post, reference where and how you are attempting to perform the task at > issue. > > To summarize, posting your code should help resolve the ambiguities in your > question :) > > Hope that helps :) Good luck :) > > Jason > > > > -- > 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 -- 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
CenterLockHorizontalScrollview.java
Description: Binary data
HorizontalScrollViewActivity.java
Description: Binary data
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content"> <com.xyz.demo.CenterLockHorizontalScrollview android:orientation="horizontal" android:id="@id/filter_modes" android:layout_width="fill_parent" android:layout_height="40dp" android:fadingEdge="none" android:scrollbars="none" > <LinearLayout android:layout_width="fill_parent" android:layout_height="40dp" android:id="@+id/scrollbk" android:background="#ffffff"> <TextView android:id="@+id/select_node1" android:layout_width="80dp" android:layout_centerHorizontal="true" android:gravity="center" android:layout_height="40dp" android:background="#ffffff" android:text="A" /> <TextView android:id="@+id/select_node2" android:layout_width="80dp" android:layout_centerHorizontal="true" android:layout_height="40dp" android:background="#ffffff" android:gravity="center" android:text="B" /> <TextView android:id="@+id/select_node3" android:layout_width="80dp" android:layout_centerHorizontal="true" android:layout_height="40dp" android:gravity="center" android:background="#ffffff" android:text="C" /> <TextView android:id="@+id/select_node4" android:layout_width="80dp" android:gravity="center" android:layout_centerHorizontal="true" android:layout_height="40dp" android:background="#ffffff" android:text="D" /> <TextView android:id="@+id/select_node5" android:layout_width="80dp" android:gravity="center" android:layout_centerHorizontal="true" android:layout_height="40dp" android:background="#ffffff" android:text="E" /> <TextView android:id="@+id/select_node6" android:layout_width="80dp" android:layout_centerHorizontal="true" android:layout_height="40dp" android:gravity="center" android:background="#ffffff" android:text="F" /> </LinearLayout> </<com.xyz.demo.CenterLockHorizontalScrollview> <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#00ffffff"> <TextView android:id="@+id/select_node" android:layout_width="80dp" android:layout_centerHorizontal="true" android:layout_height="40dp" android:background="#40bbbbbb" /> </RelativeLayout> </RelativeLayout> </LinearLayout>
<<attachment: screen.png>>