Android的 - 对点击滚动按钮的观点顶部

问题描述:

我希望把我的观点的底面(ExpandableListView下)一个按钮,点击该按钮时,它应该滚动到视图的顶部。这可能吗?

I want to place a button at the bottom of my view (under the ExpandableListView) and the when the button is clicked, it should scroll to the top of the view. Is this possible?

尝试把下面一行在onclick为底部按钮

Try putting the following line in the onClick for that bottom button

yourScrollView.fullScroll(ScrollView.FOCUS_UP);