如何在Android中使用嵌套的Listview [英] How to use nested Listview in android

查看:407
本文介绍了如何在Android中使用嵌套的Listview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要显示包含一个主要对象和许多子对象的数据.每个子对象都有其视图,该视图包含具有功能的复选框和按钮.给出我已经完成的演示设计

I need to show data which contains a main object and has many child objects. Each child object has its view which contains checkbox and buttons having functionality. Giving demo design which I've done

http://i.stack.imgur.com/ELB51.png

但是我不了解如何创建嵌套列表视图以这种方式填充数据.显示"Reminder 01"的图片是第一个提醒数据,将有许多提醒数据,每个提醒数据都有自己的剂量数据,并带有复选框和贪睡按钮.甚至我已经完成了所有逻辑并获取了数据,但不知道如何在嵌套的listview中填充数据.请给我有效的建议.

But am not understanding how to create nested listview to populate data in this way. Picture showing 'Reminder 01' is first reminder data and there will be many reminder data each having their own doses data with checkbox and snooze button. Even I've done all logic and getting data but don't know how to populate data in nested listview. Please give me efficient suggestion.

推荐答案

您可以使用 Cards Lib

示例:

然后您可以自定义卡的内部布局,以根据需要使用.

And you can customize the card's internal layout to use according to what you need.

这篇关于如何在Android中使用嵌套的Listview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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