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

Webview opens keyboard on Android

$
0
0

Hi All

I am using a webview to load a large image because imageview just doesn't work with large images.

Here is my setup for the window.

exports.create = function(model) {
 
    var self = Ti.UI.createWindow({
        fullscreen : false,
        navBarHidden : true,
        backgroundColor : '#fff'
    });
 
    var imageViewer = Titanium.UI.createWebView({
        top : '60dp',
        enableZoomControls : false,
        height :'80%',
        width : '100%',
        html : '<head></head><body marginwidth="0" marginheight="0"><img style="max-width:100%;text-align: center;" src="http://onairaustralia.com/test_site/wp-content/uploads/2013/08/Download-Hd-Dj-Music-Dance-Composer.jpg" /></body>'
    });
 
    self.add(imageViewer);
 
    return self;
 
};
But every time this window loads it opens the keyboard which seems a bit odd!!!

Has anyone got a solution for this or has experienced this before?

Thanks


Viewing all articles
Browse latest Browse all 352


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