Search This Blog

Saturday, June 11, 2016

EditText - Bắt sự kiện con trỏ trong EditText setOnFocusChangeListener

editTextTenDangNhapTrangDangNhap.setOnFocusChangeListener(new View.OnFocusChangeListener() {
    @Override    public void onFocusChange(View v, boolean hasFocus) {
        if (hasFocus == true) {
            // con trỏ có nằm trong EditText
        }
    }
});

No comments:

Post a Comment