How to force focus on android edit text

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


How to force focus on android edit text



I have a trouble with Android Layout Development.
Here is Process
-Load data from Text to Android ListView.
-Set Request Focus on EditText.



How can set focus on EditText when loading on ListView completely by programmatically changes.




1 Answer
1



Try this,in your class, set this programtically it may help you :-


editText.requestFocus();





Thank for your help, Ms Tiwari, I knew that method, however I think that after data were loaded in ListView, although I call editText.requestFocus(), cursor not focus on edit text. Do you have any solutions.
– Dũng Nguyễn Văn
39 mins ago





@DũngNguyễnVăn can you please add your code?
– Rajshree Tiwari
8 mins ago






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results