Android - button on click scroll to top of view

后端 未结 1 1356
星月不相逢
星月不相逢 2021-01-14 10:43

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 possibl

相关标签:
1条回答
  • 2021-01-14 11:01

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

    yourScrollView.fullScroll(ScrollView.FOCUS_UP);
    
    0 讨论(0)
提交回复
热议问题