Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.widget.EditText;

public class Main {
    public static void pushCursorToEnd(boolean isFocussed, EditText editText) {
        if (isFocussed && editText.getText().length() > 0) {
            String text = editText.getText().toString();
            editText.setText("");
            editText.append(text);
        }
    }
}