0
확장되었을 때 ExpandableListView에서 groupItem의 색상을 변경하는 방법은 무엇입니까? 확장되지 않은 상태에서 흰색으로 변경 하시겠습니까?Android 확장 목록 항목
확장되었을 때 ExpandableListView에서 groupItem의 색상을 변경하는 방법은 무엇입니까? 확장되지 않은 상태에서 흰색으로 변경 하시겠습니까?Android 확장 목록 항목
확장형 목록 어댑터에는 getGroupView()라는 하나의 메서드가 있습니다.이 메서드를 사용하면 이렇게 할 수 있습니다.
public View getGroupView(int groupPosition, boolean isExpanded, View convertView,
ViewGroup parent) {
//Here you can initialize your view
if(isExpanded){
// set color for expanded item.
}else{
// set color for non expanded item.
}
}