ListView에서 CheckBox를 사용합니다. 다음과 같이 내 어댑터 :listview에서 확인란을 사용하는 방법
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewTag viewTag;
if(convertView == null) {
convertView = myInflater.inflate(R.layout.row, null);
viewTag = new ViewTag((CheckBox)convertView.findViewById(R.id.row_check));
convertView.setTag(viewTag);
}
else {
viewTag = (ViewTag) convertView.getTag();
}
}
class ViewTag {
CheckBox cbx;
public ViewTag(CheckBox cb) {
this.cbx = cb;
}
}
첫째 : ListActivity에서 , 내가 확인 모든 항목을 설정하는 버튼을 클릭하십시오. 어떻게 수행하나요? 두 번째 : ListActivity에서 확인한 항목을 가져 오는 방법은 무엇입니까?
체크 아웃 [this] (http://stackoverflow.com/questions/7738527/getting-an-issue-while-checking-the-dynamically-generated-checkbox-through-list/7738854#7738854) 스레드. –