This screen shows list of items in listview for ToDoList App,we have to get disable the items by clicking on it
CustomAdapter adapter = new CustomAdapter(this, todos);
Log.d("adaptor",adapter+"");
Log.d("after custom adapter","after custom adapte");
taskList.setAdapter(adapter);
TextView tvName = (TextView) view.findViewById(R.id.textView1);
TextView tvDate = (TextView) view.findViewById(R.id.textView2);
TextView tvTime = (TextView) view.findViewById(R.id.textView3);
CheckBox checkBox = (CheckBox) view.findViewById(R.id.checkBoxforlist);
tvName.setEnabled(false);
tvDate.setEnabled(false);
tvTime.setEnabled(false);
checkBox.setFocusable(false);
Here CustomAdapter is the my customized adapter class to set my listview items with checkbox
[1]: http://ift.tt/1Ez19zj
Here CustomAdapter is the my customized adapter class to set my listview items with checkbox
Aucun commentaire:
Enregistrer un commentaire