问题
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?
回答1:
you can use this method
horizontalScrollView.scrollBy(160, 0);
or
horizontalScrollView.scrollTo(160, 0);
来源:https://stackoverflow.com/questions/11700581/how-to-move-horizontal-scroll-view-to-a-particular-position