Code example for EditTextPreference

Methods: setEnabled

0
 
									@Override 
									public void onClick(DialogInterface dialog,
											int which) {
										playOptionPreference.setChecked(false);
										playNumPreference.setEnabled(false);
									} 
								}) 
						.setNegativeButton( 
								R.string.play_network_alert_negative, 
								new DialogInterface.OnClickListener() {
 
									@Override 
									public void onClick(DialogInterface dialog,
											int which) {
										playNetworkPreference.setChecked(false);
									} 
								}).create().show(); 
			} else { 
			} 
		}