Code example for SingleLineTransformationMethod

0
        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 
        // tabViewIntent = new Intent(this, TabViewActivity.class);