How to make an Edit not lose focus?

1

How to do for a TEdit , which is being accessed on Android, do not lose focus because of the virtual keyboard that comes when the focus goes to TEdit ?

    
asked by anonymous 21.12.2017 / 15:14

1 answer

0

Are you referring to EditText ? If so, at the location of your code that causes your EditText to lose focus, you can try adding:

editText.requestFocus();

It should probably work (keep focus on the element). If it does not work, take a look at these solutions:

Android Edittext looses focus while typing in the keypad

Focus removed while typing in edit text

    
21.12.2017 / 16:39