Navdroid
Navdroid

Reputation: 1549

How to move Horizontal Scroll View to a particular position?

I am using scrollView without any listView or gridview .I have just added same views to it but know I want to programmatically scroll to a particular position. Is this possible ?

Please help I am using Horizontal Scroll?

Upvotes: 4

Views: 6959

Answers (1)

MAC
MAC

Reputation: 15847

you can use this method

horizontalScrollView.scrollBy(160, 0);

or

horizontalScrollView.scrollTo(160, 0);

Upvotes: 7

Related Questions