GridView android中每行的不同列号

GridView android中每行的不同列号,第1张

概述我必须使用Gridview创建UI.图像是动态的,因为它来自Web服务. 我可以使用xml定义列号,但第0个索引处的项目必须有一个完整的图像,然后其余部分应分成列. 任何帮助表示赞赏. 你应该使用 TableLayout.GridView不支持跨越 *** 作. A layout that arranges its children into rows and columns. A TableLayout 我必须使用GrIDvIEw创建UI.图像是动态的,因为它来自Web服务.

我可以使用xml定义列号,但第0个索引处的项目必须有一个完整的图像,然后其余部分应分成列.

任何帮助表示赞赏.

解决方法 你应该使用 TableLayout.GrIDVIEw不支持跨越 *** 作.

A layout that arranges its children into rows and columns. A
tableLayout consists of a number of tableRow objects,each defining a
row (actually,you can have other children,which will be explained
below). tableLayout containers do not display border lines for their
rows,columns,or cells. Each row has zero or more cells; each cell
can hold one VIEw object. The table has as many columns as the row
with the most cells. A table can leave cells empty. Cells can span
columns,as they can in HTML.

你可以看到一个例子here.

总结

以上是内存溢出为你收集整理的GridView android中每行的不同列号全部内容,希望文章能够帮你解决GridView android中每行的不同列号所遇到的程序开发问题。

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

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

原文地址:https://54852.com/web/1127483.html

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

发表评论

登录后才能评论

评论列表(0条)

    保存