Answers for "how to know if edit text has been clicked inside android"

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 "how to know if edit text has been clicked inside android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language