网格布局与不同大小的项目 [英] Grid Layout with different sized items

查看:100
本文介绍了网格布局与不同大小的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以使用GridLayout在列表视图中显示不同宽度的项目?类似于"开始"菜单的内容。

I wonder if its possible to display items with different width in a listview with GridLayout? Something like the Start menu does.

| Item 1       |      Item 2 |
| Item 3   | Item 4 | Item 5 |
| Item 6   | Item 7 | Item 8 |




推荐答案

嗨菲尔,

开始菜单实际上是这样的(微妙的区别,但重要的是要注意):

The start menu actually does something like this (subtle difference but important to note):

| Item 1   | **** Item 2 ***|
| Item 3   | Item 4 | Item 5 |
| Item 6   | Item 7 | Item 8 |

我不确定他们是如何完成这个的(它可能是一个自定义控件),但你可以肯定地做很多方法。 如果这是一个表,你可以使用colspan = 2;或者如果使用msGrid,你也可以做类似的事情。

I am not sure how they are accomplishing this (it is probably a custom control) but you could definately do this many ways.  You could use colspan=2 if this was a table or if using msGrid you could also do something similar.

此外,开始菜单看起来像是使用分组的网格,如果你有看到一些后期版本的视频,它看起来像一个语义缩放,可以让你获得1000英尺的物品视图。

Also that start menu looks like a grid that is using grouping and if you have seen some of the videos of the later versions it looks like a semantic zoom allows you to get the 1000 foot view of the items.

-jeff


这篇关于网格布局与不同大小的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆