简体   繁体   English

自定义GridView的最后一行项目未完全显示

[英]Custom GridView's Last row items not showing fully

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) . 在我的应用程序中,我必须在GridView显示所有List Items ,然后在向下滚动GridView还需要同时滚动上部View(GridView的顶部)和Grid。为此,我使用了HeaderGridView 将标题添加到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. 我需要的是工作正常,但是GridView的最后一行项目没有像附加的图像一样完整显示。因此,任何人都可以帮助我解决此问题。

在此处输入图片说明

This is the default property of the gridview. 这是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 . 如果您以自己的方式需要它,则只能通过根据屏幕高度 在gridview中显示项目来定制gridview来解决它。 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 gridview调整为屏幕大小

android How to stretch rows in the gridview to fill screen? android如何在gridview中拉伸行以填充屏幕?

How to make customAdapter fill gridview height 如何使customAdapter填充gridview高度

I think this links may give you some guidelines. 我认为此链接可以为您提供一些指导。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM