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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -