Code example for SingleLineTransformationMethod

0
		c1.setChecked(true);
		isSecure = false;
		in.setText("");
		send2Clipboard(""); 
		in.setInputType(InputType.TYPE_TEXT_VARIATION_NORMAL);
		in.setTransformationMethod(new SingleLineTransformationMethod ());
	} 
	 
	protected void setSecure() { 
		c1.setChecked(false);
		isSecure = true;
		in.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
		in.setTransformationMethod(new PasswordTransformationMethod());
	} 
 
	protected void calcBase64Half() { 
		String p = in.getText().toString();
		String b64 = String.valueOf(Base64Coder.encode(getSha1(p)));
		b64 = b64.substring(0, b64.length()/2);
		send2Clipboard(b64);
Stop searching for code, let great code find you!  Add Codota to your java IDE