Code example for Checkable

Methods: isChecked

0
	@Override 
	public boolean isChecked() { 
		checkable = (Checkable) findViewById(checkableId);
		if (checkable == null)
			return false; 
		return checkable.isChecked();
	} 
 
	@Override 
	public void setChecked(boolean checked) {
		checkable = (Checkable) findViewById(checkableId);
		if (checkable == null)
			return; 
		checkable.setChecked(checked);
	} 
 
	@Override 
	public void toggle() { 
		checkable = (Checkable) findViewById(checkableId);
		if (checkable == null)
			return;