This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
首先请注意,我不需要滚动列表内容,我想移动整个列表视图。我有一个ListView,我想垂直移动整个视图。我可以通过将列表放入LinearLayout容器中来做到这一点,然后调用scrollTo(x,y)该容器。此外,我可以水平移动列表,方法是在直接调用scrollTo(x,y)我的ListView. 但是更改 y 并调用该方法ListView无效。也许有人可以建议一种在ListView不使用额外布局、边距、不可见标题等的情况下垂直移动的方法谢谢