Android的 - 在ListView多GridView的

问题描述:

我知道有类似这样的问题,但我没有发现任何解决方案,从它。
我想要做的就是创建 GridView的的列表。
事情是这样的:

I know that there are questions similar to this but I found no solution from it. What I'm trying to do is create a list of GridViews. Something like this:

在这里输入的形象描述

我现在有这样的:
item_cell.xml < - 布局网格中的每个项目
layout_grid.xml < - 网格布局
list_view.xml < - 列表,然后包括我的活动布局的布局

What I currently have is this: item_cell.xml <-- layout for each item in the grid layout_grid.xml <-- layout of the grid list_view.xml <-- layout of the list which is then included to the layout of my Activity.

所以,我在想是吹大 item_cell layout_grid.xml 然后夸大,要 list_view 。就是这种想法的可能吗?我还没有尝试过,但因为我不知道如何对待它。

So what i was thinking was to inflate the item_cell to layout_grid.xml then inflate that after to list_view. Is this kind of idea possible? I havent tried it though because I'm not sure of how to approach it.

一件事,有没有可以帮助这种做法的图书馆吗?

One thing, is there any library that could help this kind of approach?

任何想法是极大的AP preciated。

Any idea is greatly appreciated.

作为一个额外的问题,我的GridView的是像一个日历,但在日历的天都在第一列和列的其余部分是有点像一个时间表。

As an additional question, my GridView is like a calendar but the days of the calendar are on the first column and the rest of the columns are somewhat like a schedule.

                  A        B       C      D
        Mon     data1    data2   data3
        Tues    data1    data2
        Wed     data1    data2
        Thurs
        Fri
        Sat
        Sun
        Mon
        .
        .
        .

有没有其他的方式来实现这个,而不是把它放在一个阵列/列表和计算中,单元格的数据应该只使用一个信息从并添加

要说明:
     {星期一,数据1,数据2,数据3,周二,数据1,数据2,星期三。 。 。 。 }

To illustrate: {Mon, data1, data2, data3, Tues, data1, data2, Wed. . . . . }

再次我需要启示作用。你的帮助是非常AP preciated。

Again, i need englightenment. Your help is very much appreciated.

有关你的第一个问题,我想你想的是这样的:的 HTTPS://sriramramani.word$p$pss.com/2013/08/14/grid-in-a-listview /

For you first question, I think you're thinking of something like this: https://sriramramani.wordpress.com/2013/08/14/grid-in-a-listview/

对于第二个问题,你能不能详细呢?做数据元素的列标题需要显示?

For the second question, could you elaborate at all? Do the column headers for data elements need to be displayed?