【问题标题】:How to detect clicks ,having listview inside another listview如何检测点击,在另一个列表视图中有列表视图
【发布时间】:2015-06-15 12:57:23
【问题描述】:

嗨,我有一个列表 l,其中包含 L1 -> B2 -> B3 -> L2

B 是按钮,l 是列表

L1 包含 B1 -> B2
L2 包含 B4 -> B5

完整列表看起来像 B1->B2->B3->B4->B5

如何区分点击B1和B4

【问题讨论】:

    标签: java android android-layout android-intent android-activity


    【解决方案1】:

    @Harsh 只需为您的工作使用 Expandable ListView。它将简化您所有与点击/选择相关的工作!
    http://developer.android.com/reference/android/widget/ExpandableListView.html

    【讨论】:

    • 如果不使用 Expandable listview 我们不能这样做吗?
    • @HarshMiddha 你试过了吗?给我看看你的代码
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-23
    • 2013-01-21
    • 1970-01-01
    • 2013-02-02
    • 2013-01-22
    相关资源
    最近更新 更多