简体   繁体   English

带有标题的GridView页眉和页脚填满了屏幕宽度

[英]GridView Header and Footer with header filled the screen width

Hi I am working on GridView which has header and footer. 嗨,我正在使用具有页眉和页脚的GridView。

In my case, the header's width should fill the screen width like below 在我的情况下,标题的宽度应该填充屏幕宽度,如下所示

图像标题填满了屏幕宽度

But I am getting the header filled the grid items' width. 但我得到的标题填充了网格项目的宽度。

I have used the library . 我用过这个图书馆

What should I have to do to make the header's width match with screen width. 我应该怎么做才能使标题的宽度与屏幕宽度相匹配。

Note : The header only should filled the screen width not the grid items. 注意:标题只应填充屏幕宽度而不是网格项目。 And the grid items should have right and left margins. 网格项应具有左右边距。

Use the HFGridview ` https://github.com/SergeyBurish/HFGridView/tree/master/HFGridView 使用HFGridview`https ://github.com/SergeyBurish/HFGridView/tree/master/HFGridView

By this you will acheve waht you want with little bit customisation. 通过这种方式,您可以通过一点点定制来满足您的需求。 I already implemented that. 我已经实现了。 If you face any problem let me know I will share code with you. 如果您遇到任何问题,请告诉我,我将与您分享代码。

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

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