Code example for EditText

Methods: setTextsetTransformationMethodsetTypeface

0
        timerHandler = new Handler();
        timer = new Runnable() {
    	    @Override 
    	    public void run() 
    	    { 
    	    	pin4.setTypeface(tf_default);
    	    	pin4.setText("x");
    	    	pin4.setTransformationMethod(PasswordTransformationMethod.getInstance());
    	    } 
		}; 
         
        // Create an on touch listener that does nothing, to disable the action when touching on the pin fields 
        OnTouchListener otl = new OnTouchListener() {			
			@Override 
			public boolean onTouch(View v, MotionEvent event) {
				return true; 
			} 
		}; 
		 
		pin1.setOnTouchListener(otl);
		pin2.setOnTouchListener(otl);