如何在android中设置gridview的列宽?

如何在android中设置gridview的列宽?,第1张

概述我在 android中使用gridview,我想设置第一列的宽度,但我不能.当我试图找到问题的答案时,我面对面发表评论,你可以在下面看到.我的问题是,下面的描述是真的吗? GridView中的所有列都具有相同的大小. 在2009年5月23日星期六晚上9点25分,solid写道: I am having trouble controlling the size of the columns in m 我在 android中使用grIDvIEw,我想设置第一列的宽度,但我不能.当我试图找到问题的答案时,我面对面发表评论,你可以在下面看到.我的问题是,下面的描述是真的吗?

GrIDVIEw中的所有列都具有相同的大小.
在2009年5月23日星期六晚上9点25分,solID写道:

I am having trouble controlling the size of the columns in my
GrIDVIEw. The first column is only 3-4 chars and the other 4 columns
are 5-8 chars. For some reason,all the columns are the same wIDth,
leaving a huge amount of spacing after the first column and wrapPing
the text insIDe the others. Is there a way,I can set the wIDth of
indivIDual columns in the grID vIEw? In an IDeal world,grIDvIEw
would work like an HTML table,where the smaller columns are shrunk to
fit the data and larger columns expand as necessary. Any IDeas would
be helpful.

解决方法@H_403_20@ 似乎你可能更好地使用 TableLayout 总结

以上是内存溢出为你收集整理的如何在android中设置gridview的列宽?全部内容,希望文章能够帮你解决如何在android中设置gridview的列宽?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1135362.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存