How to display the soft keyboard only on the click event of edittext in android? -


my android activity has edittext. whenever screen loads soft keyboard automatically pops up. obscures visibility of screen. want display soft keyboard on click event of edittext.

how can this?

in code got this:

 inputmethodmanager imm = (inputmethodmanager)getsystemservice(context.input_method_service);  imm.hidesoftinputfromwindow(password.getwindowtoken(), 0);  imm.hidesoftinputfromwindow(username.getwindowtoken(), 0); 

where password , username textedit views. , show:

imm.showsoftinputfromwindow(username.getwindowtoken(), 0); 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -