안녕하세요.
여기저기 검색해도 답을 못찾겠습니다.
XML 에 속성을 지정안해서 인지, 아님 클릭이벤트가 잘못지정 되었는지 궁금합니다.
소스보시면 부모클릭시엔 이벤트가 작동하는데요, 자식을 클릭하면 작동하지 않습니다.
XML ***********************************************
<ExpandableListView android:id="@+id/main_location_list"
android:groupIndicator="@drawable/main_null" android:background="@color/color_white"
android:layout_width="fill_parent" android:layout_height="fill_parent" />
JAVA **************************************************
mMainList.setOnGroupClickListener(new OnGroupClickListener() {
public boolean onGroupClick(ExpandableListView parent, View v,
int groupPosition, long id) {
Toast.makeText(MainActivity.this, "부모클릭", Toast.LENGTH_SHORT).show();
return false;
}
});
mMainList.setOnChildClickListener(new OnChildClickListener() {
public boolean onChildClick(ExpandableListView parent, View v,
int groupPosition, int childPosition, long id) {
Toast.makeText(MainActivity.this, "자식클릭", Toast.LENGTH_SHORT).show();
return false;
}
});
좋은하루 되시구요 답변 부탁 드리겠습니다.
감사합니다.




ExpandableListViewActivity 상속 받은 곳에선 child 클릭가능 한지 안한지 여부를
오버라이딩하더군요.
findViewById()로 찾으신것같은데 어떻게 child를 클릭가능하게 하는지 모르겟어요;;
이글 보시고 도움이 되실길 바랄께요;
http://blog.naver.com/lowmans?Redirect=Log&logNo=100125825786