Answers for "how to know if edittext has been clicked and keyboard is appearing"

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 edittext has been clicked and keyboard is appearing"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language