set password visible in android

Solutions on MaxInterview for set password visible in android by the best coders in the world

showing results for - "set password visible in android"
Pia
05 May 2017
1 button.setOnTouchListener(new View.OnTouchListener() {
2        @Override
3        public boolean onTouch(View view, MotionEvent motionEvent) {
4            if(button.isPressed()) {
5                upass.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
6                return true;
7            }
8            return true;
9        }
10   });