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 Enter image details here and another item  Enter image details here

But after scrolling we see  Enter image details here

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

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -