【发布时间】: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
嗨,我有一个列表 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
@Harsh 只需为您的工作使用 Expandable ListView。它将简化您所有与点击/选择相关的工作!
http://developer.android.com/reference/android/widget/ExpandableListView.html
【讨论】: