垂直列表视图里面的ListView水平(和滚动列表视图多一起) [英] Horizontal listview inside vertical listview (and scrolling multiple listviews together)

查看:288
本文介绍了垂直列表视图里面的ListView水平(和滚动列表视图多一起)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个应用程序参加,目前想实现一个布局考勤数据的海量观看如下:

I am creating an attendance app and currently am trying to implement a layout as follows for mass viewing of attendance data:

AAA | B | B | B | B | C
-----------------------
DDD | E | E | E | E | F
DDD | E | E | E | E | F

A,B和C头文件(A =名称,B =日期,C =%)。 A和C应固定,不​​应在任何一个方向滚动。

A, B and C are headers (A = Name, B = Date, C = %). A and C should fixed and should not scroll in either direction.

D,E和F应该共同垂直滚动(D =姓名,E =复选框,F =计算%)。

D, E and F should scroll together vertically (D = name, E = checkbox, F = calculated %).

B和E水平应该一起滚动(B =日期,E =复选框)。

B and E should scroll together horizontally (B = date, E = checkbox).

这是如何实现这一点有什么想法?

Any thoughts on how this could be implemented?

我有搜索周围的SO,并通过谷歌,我还没有发现问题一大堆的方向。

I've search around on SO and through Google, and I haven't found a whole lot of direction on the issue.

我没有找到一个水平列表滚动库,我想我可以得到进入我的垂直列表适配器,但即使工作了,那会离开我套牢具有B/ date头重复上的每个部分线或没有它。

I did find a horizontal list scroller library, and I think I can get that into my vertical list adapter, but even if that works out, that would leave me stuck with having the "B"/date header portion repeated on every line or not having it at all.

我能想到的唯一要做的是使日头一个单独的水平滚动列表视图并以某种方式使之与考勤数据滚动,但我在哪里开始尝试不知道。

The only thing I can think of to do is to make the date header a separate horizontal scrolling listview and somehow make it scroll with the attendance data, but I have no idea on where to begin to try that.

要教程,code或库中任何指针将AP preciated。

Any pointers to tutorials, code or libraries would be appreciated.

推荐答案

这可能是一个棘手的概念,我会建议使用此结构

This can be a tricky concept I would advise to use this structure

 <horizontal ScrolView>
  <scrollview>
  <table layout>

在地方列表视图使用表格布局,因为名单有它自己的滚动,并放置在另一个滚动窗口小部件时这会造成麻烦。

use table layout in place of the list view because list has it's own scroll and it causes trouble when placed in another scrolling widget

这篇关于垂直列表视图里面的ListView水平(和滚动列表视图多一起)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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