Code example for AlertDialog

Methods: dismiss

0
 
		public void performValidation() { 
			getEditText().setError(null);
			if (editTextValidator.testValidity()) {
				// Dismiss once everything is OK. 
				theDialog.dismiss();
				ValidatingEditTextPreference.this.onClick(theDialog,
						AlertDialog.BUTTON_POSITIVE);
 
				// reset padding - for when dialog is used again 
				if (originalBottomPadding != Integer.MIN_VALUE) {
					LinearLayout parentLayout = (LinearLayout) getEditText()
							.getParent();
 
					if (originalBottomPadding == parentLayout
							.getPaddingBottom()) {
						parentLayout.setPadding(parentLayout.getPaddingLeft(),
								parentLayout.getPaddingTop(),
								parentLayout.getPaddingRight(),
								originalBottomPadding);
Connect your IDE to all the code out there  Get Codota for Java