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

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

本文介绍了自定义GridView的最后一行项目未完全显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我必须在 GridView 中显示所有 List Items ,然后向下滚动 GridView 时,需要滚动上方的View(位于GridView的顶部)和Grid.为此,我使用了 HeaderGridView

android如何在网格视图以填充屏幕?

如何使customAdapter填充gridview高度

我认为此链接可以为您提供一些指导.

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.

解决方案

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.

这篇关于自定义GridView的最后一行项目未完全显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 17:13