Code example for CheckedTextView

Methods: isChecked, toggle

0
			@Override 
			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
					long arg3) 
			{ 
				CheckedTextView cv = (CheckedTextView)arg1;
				cv.toggle();
 
				if (cv.isChecked())	{ _result[_listview.getPositionForView(arg1)] = '1'; }
				else				{ _result[_listview.getPositionForView(arg1)] = '0'; }
			} 
 
		}); 
	} 
 
	public void Confirm_onClick(View v) 
	{ 
		_intent.putExtra("returnstring", _result.toString());
		setResult(RESULT_OK, _intent);
		finish();
	}