Set first visible item in Android gridview completely seen -
It is not fully seen. I want to set the gridview at the top of the first scene line so that the first row is fully visible.
Can anyone help me?
Update: First item and another item
But after scrolling we see
You can try it
grid .setOnScrollListener {@ override public zero} {// it is on ScrollStateChanged (AbsListView arg0, Intel ScrollStat) {// Scroll The position at the end of the scroll (scrollState == SCROLL_STATE_IDLE) // The first visible is the first (even partially) visual item / set SELECT selection grid will scroll to the beginning of the item grid. Sets selection (first web item) ;} Override public Zero on @Scroll (AbsListView arg0, int firstVisibleItem, int visibleItemCount, int totalItemCount) {}});
Comments
Post a Comment