Code example for CheckBox

Methods: performClick

0
			/** 
			 * Defines what has to be performed when the line is clicked. 
			 */ 
			@Override 
			public void onClick(View v) {
				mPrefBox.performClick();
			} 
		}); 
 
		mConvertView.setOnKeyListener(new OnKeyListener() {
 
			/** 
			 * Defines what has to be performed when the line is clicked. 
			 */ 
			@Override 
			public boolean onKey(View v, int keyCode, KeyEvent event) {
				switch (keyCode) {
				case KeyEvent.ACTION_DOWN:
					mPrefBox.performClick();
					break; 
				}