Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can dynamically move scroll bar in gridview

Tags:

android

I am using grid view for images,first time i using 16 images display in gridview after i will add another 16 images in grid view,now totally 32 images in gridview,ok now i want to move scroll bar last 16 images position in grid view,how can dynamically scroll bar in grid view?,anybody know please give code..

Thanks All

like image 566
sivaraj Avatar asked Apr 09 '26 12:04

sivaraj


1 Answers

You can use the smoothScrollToPosition method to "smoothly scroll to the specified adapter position."

gridView.smoothScrollToPosition(position);
like image 75
Brian Avatar answered Apr 12 '26 04:04

Brian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!