인텐트는 문제없이 잘되는데 문제는 parent에 상관없이 child가 동일하게 인텐트 된다는 것입니다.
parent에 따라 모두 각각 다른 인텐트로 연결할려면 어떻게 하면 되는지 답변 부탁드립니다.
ExpandableListView mList;
String[] arProv = new String[] {
"가평", "강화", "고양"
};
String[][] arFood = new String[][] {
{"잣"},
{"수삼"},
{"오골계", "민속공예품"},
};
.
.
.
mList.setOnChildClickListener(new OnChildClickListener() {
@Override
public boolean onChildClick(ExpandableListView child, View v,
int groupPosition, int childPosition, long id) {
switch(childPosition) {
case 0 :
Intent aa= new Intent(kg.this, kg01.class);
startActivity(aa);
break;
case 1 :
Intent ab= new Intent(kg.this, kg02.class);
startActivity(ab);
break;
+
즉, 가평 잣, 강화 수삼, 고양 오골계가 모두 'kg01'로 연결된다는 점입니다 ㅡ,,ㅡ




groupPosition 값도 고려하시면 되겠네요