Answers for "android edittext focus event"

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 edittext focus event"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language