如何在 ExpandableListView 子元素中添加不同的组件类型

发布于 2024-12-03 07:03:05 字数 531 浏览 4 评论 0原文

SA,

我使用了这里找到的示例: http://mylifewithandroid.blogspot.com/2010/02 /expandable-lists-and-check-boxes.html

将复选框作为 ExpandableListView 的子组件。

问题是,我需要具有以下结构:

-Main Item 1
   - text   checkbox
   - text   checkbox
   - button
-Main Item 2
   - text   checkbox
   - text   checkbox
   - button
-Main Item 3
   - text   checkbox
   - text   checkbox
   - button

谢谢。

SA,

I've used the example found here:
http://mylifewithandroid.blogspot.com/2010/02/expandable-lists-and-check-boxes.html

to have checkboxes as sub components for ExpandableListView.

The problem is, I need to have the following structure:

-Main Item 1
   - text   checkbox
   - text   checkbox
   - button
-Main Item 2
   - text   checkbox
   - text   checkbox
   - button
-Main Item 3
   - text   checkbox
   - text   checkbox
   - button

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文