I have a listview.Listview data i am populating from database and i am using customAdapter .In my customAdapter i have two textview and one checkbox.And i am not using any POJO class I want to get all the checkeditem of that listview on check of checkbox. How i can do that.anyone please help me.
@Override
public View getView(final int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
final ViewHolder holder;
if (convertView == null) {
holder = new ViewHolder();
mInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = mInflater.inflate(R.layout.inner_layout, null);
holder.tv_name = (TextView) convertView.findViewById(R.id.tv_name);
holder.tv_name1 = (TextView) convertView.findViewById(R.id.tv_name1);
holder.checkBox = (CheckBox) convertView.findViewById(R.id.checkBox);
holder.checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if(isChecked){
}else{
}
}
});
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}