Android button - Press scroll up

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

+3
android


source to share


1 answer


Try to put the following line in onClick for this bottom button



yourScrollView.fullScroll(ScrollView.FOCUS_UP);

      

+4


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics