Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.text.InputType;

import android.widget.EditText;

public class Main {
    public static void hidePassword(EditText editText) {
        editText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
        setSeletionEnd(editText);
    }

    public static void setSeletionEnd(EditText editText) {
        editText.setSelection(editText.getText().length());
    }
}