Answers for "android how to detect when user click on edittext"

0

how to check when edittext clicked android

edittext.setOnTouchListener(new OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
        if(MotionEvent.ACTION_UP == event.getAction()) {
            mQuaternion_1.setText("" + mQ1);
        }

        return true; // return is important...
    }
});
Posted by: Guest on June-17-2020

Code answers related to "android how to detect when user click on edittext"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language