Code example for TimePicker

Methods: setVisibility

0
					int dayOfMonth) {
				// date changed, using the (current) time is not expected 
				if (!ignoreTime) {
					ignoreTime = false;
					chbxIgnoreTime.setChecked(true);
					timePicker.setVisibility(View.GONE);
				} 
				 
			} 
		}); 
         
        chbxIgnoreTime = (CheckBox) findViewById(R.id.chbxIgnoreTime);
        chbxIgnoreTime.setOnCheckedChangeListener(new OnCheckedChangeListener() {
			 
			@Override 
			public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
				// TODO Auto-generated method stub 
				if ( isChecked != ignoreTime ) {
					ignoreTime = isChecked;
					timePicker.setVisibility(ignoreTime ? View.GONE : View.VISIBLE);
				}