Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (keyboard)
Viewing all articles
Browse latest Browse all 352

Hide Android Keyboard Onload

$
0
0

I want to hide the Android keyboard when my app is opened. It appears Android focuses the first text box which causes the keyboard to appear. I've tried the following code below which works when the app is opened for the first time, but it does not work on subsequent openings. Any help is appreciated. Thanks.

setTimeout( function() {
    $.Username.blur();
    Ti.UI.Android.hideSoftKeyboard();
}, 200);

Viewing all articles
Browse latest Browse all 352

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>