Custom GridView's Last row items not showing fully

拟墨画扇 提交于 2021-01-28 23:11:45

问题


In My application I have to show all List Items in GridView and then while scroll down the GridView it needed to scroll the upper View(top of GridView) also along with Grid.For this purpose I have used HeaderGridView Add a Header to a GridView (Android). What I needed is working fine but the GridView's last row items are not viewing fully as like attached image.So,anyone please help me to solve this issue.

enter image description here


回答1:


This is the default property of the gridview. It will show as like that only. If you need it in your own way, then you can solve it only by customizing the gridview by displaying the items in the gridview according to the screen height. This is only just a hint to solve your problem. So Please check this and if you doesn't got solution, please let me know.

Android gridview adjusting to screen size

android How to stretch rows in the gridview to fill screen?

How to make customAdapter fill gridview height

I think this links may give you some guidelines.



来源:https://stackoverflow.com/questions/27939488/custom-gridviews-last-row-items-not-showing-fully

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!