Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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...
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #edittext #clicked #android
ADD COMMENT
Topic
Name
8+4 =