Android default onfocus on autofocus and editview,How to remove that?
-
26-09-2019 - |
문제
In my application I have a autocomplete in first activity and some edittext in second activity.
When I run my code in emulator it works fine and I am not seeing any virtual keyboard on screen when program is excecuted.
But when I deploy it in device when the application loads, onfocus is directly on autocomplete and a keyboard pops out, and also when I navigate from first activity to second activity onfocus is on first edittext and keyboard pops out.
I want to disable this onfocus on all the page. how to do that ?
해결책
Take a look at this question:
다른 팁
That worked for me... I just put this line in the activity definition on Manifest.
<activity
...
android:windowSoftInputMode="stateHidden" >
</activity>
제휴하지 않습니다 StackOverflow