[英]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. 我正在使用没有任何listView或gridview的scrollView。我刚刚向其中添加了相同的视图,但知道我想以编程方式滚动到特定位置。 Is this possible ?
这可能吗 ?
Please help I am using Horizontal Scroll? 请帮助我使用水平滚动吗?
you can use this method 你可以用这种方法
horizontalScrollView.scrollBy(160, 0);
or 要么
horizontalScrollView.scrollTo(160, 0);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.