Code example for RelativeLayout

Methods: setOnClickListener

0
 
		}); 
	} 
 
	void r1(RelativeLayout view) {
		view.setOnClickListener(new OnClickListener() {
 
			@Override 
			public void onClick(View v) {
				// TODO Auto-generated method stub 
				cb1.setChecked(!cb1.isChecked());
			} 
 
		}); 
	} 
 
	void r2(RelativeLayout view) {
		view.setOnClickListener(new OnClickListener() {
 
			@Override 
			public void onClick(View v) {