I want to scroll multiple items in Horizontal scroll view
on the click of left
and right
arrow click which are resided in both corners. Means I have a Horizontal scroll view
with two buttons left and right for scrolling items according to the same. I have searched enough on web but nothing matched. Please suggest me for the right solution regarding the same.
Asked
Active
Viewed 1,859 times
0

Shruti
- 1
- 13
- 55
- 95

Sanat Pandey
- 4,081
- 17
- 75
- 132
-
1what have you tried ? The previous question posted by you http://stackoverflow.com/questions/9206259/horizontal-slider-bar-in-android was almost same. You got various correct comments and answers but you didn't reply to even single answer or comment. Seems you havent tried anything.. I AM NOT ATTRACTED TO ANSWER YOUR QUESTION really... – Kartik Domadiya Feb 09 '12 at 09:37
-
Hello Kartik, all answers posted in that questions are not so correct, because I am trying the same according to them since morning but results remains same. It is achieved only through Horizontal Scroll View......and I implemented also but I am failed to scroll the view on button click that's why I posted this question. If you don't want to give the answer then I am not forcing you to do like same. – Sanat Pandey Feb 09 '12 at 09:43
-
If you are facing problem in implementation, you should have commented on the answers that you have tried. I dont think you need a separate question. And again, for what COMMENT sections are there! – Kartik Domadiya Feb 09 '12 at 09:46
-
Kartik, Please read this question carefully, this is totally different question from the previous one. And its my decision that where to comment or where not. – Sanat Pandey Feb 09 '12 at 09:56
-
Thanks a lot Kartik for your valuable time and effort. – Sanat Pandey Feb 09 '12 at 10:58
2 Answers
1
Use yourScrollView.scrollTo(x, y);
in the button listener method. Add further conditions to limit the ends or to make it infinitely scrollable.
Go through the android documentation for more info...

tipycalFlow
- 7,594
- 4
- 34
- 45
0
just set focus on next child, by using following methods:
`viewGroup.findFocus();
to get View which is focused,
and getNext vuew from layout and set focus on that view by:
view.requestFocus();

jeet
- 29,001
- 6
- 52
- 53