Code example for CheckBox

Methods: setVisibility

0
	public CheckBox getCheckBox() {
		return chkSelectAll;
	} 
	 
	public void setCheckBoxVisible(boolean visible) {
		chkSelectAll.setVisibility(visible ? View.VISIBLE: View.GONE);
	} 
	 
	public void setButton1Text(CharSequence text) {
		btn1.setText(text);
	} 
 
	public void setButton2Text(CharSequence text) {
		btn2.setText(text);
	} 
	 
	public void init() { 
		addView(inflate(getContext(), R.layout.dataapp_bar, null));
		btn1 = (Button) findViewById(R.id.barButton1);
		btn2 = (Button) findViewById(R.id.barButton2);
		chkSelectAll = (CheckBox) findViewById(R.id.chkSelAll);