Get access of gridview from its adapter- Android -
i have custom gridview own adapter.i'm handling gridview button click @ adapter's implementation.after pressing button want show quick actionbar "confirm" if user press on confirm action gridview automatically smoothscroll position.this want. have created quick actionbar dont know how implement smoothscroll.
in getview use
gridview gv=(gridview)parent; to gridview
edit
run smooth scroll delay
gridview.postdelayed(new runnable() { @override public void run() { // todo auto-generated method stub gridview.smoothscrollby(1000, 10000); } }, 1000);
Comments
Post a Comment