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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -