Android SingleLineTransformationMethod - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android SingleLineTransformationMethod class.

This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
        final EditText loginApiKey = (EditText) findViewById(R.id.login_apikey);
 
        show_clear.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
		        if (((CheckBox) v).isChecked()) {
		        	loginApiKey.setTransformationMethod(new SingleLineTransformationMethod());
		        } else { 
		        	loginApiKey.setTransformationMethod(new PasswordTransformationMethod());	
		        } 
		        loginApiKey.requestFocus();
		    }	 
		}); 
         
        ((Button) findViewById(R.id.button)).setOnClickListener(this);
         
		loginApiKey.setOnEditorActionListener(this);
        loadLoginPreferences(); 
        restoreState(savedInstanceState);
         
        // use the TabViewActivity when Cloud Files is added 
Full Snippet Info
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
This code example shows how to use the following methods:
	        { 
	        	/** 
	        	 ** If password visibility CheckBox is checked, password 
	        	 ** field need to be changed to normal TransofmationMethod 
	        	 **/ 
	        	mUserPass.setTransformationMethod(new SingleLineTransformationMethod()); 
	        } 
	        else 
	        { 
	        	/** 
	        	 ** If password visibility CheckBox is unchecked, password 
	        	 ** field need to be changed to password TransofmationMethod 
	        	 **/ 
	        	mUserPass.setTransformationMethod(new PasswordTransformationMethod()); 
	        } 
 
	    } 
	}; 
     
	/** 
Full Snippet Info
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
		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);
Full Snippet Info
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
See Code Examples for Android SingleLineTransformationMethod Methods: