Dropdown Lists (html select) in Android Webview
While testing on a Verizon Droid phone and also verified in a 2.0.1 emulator I was unable to get a drop down list to appear when clicking on one inside a webview.
6 Answers
-
What version of Titanium are you using?
-
Titanium 1.0
-
Still no update on this? Here is the code to reproduce.
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');// create tab group
var tabGroup = Titanium.UI.createTabGroup();//
// create base UI tab and root window
//
var wv = Titanium.UI.createWebView({
url:'http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_option',
backgroundColor:'#fff'
});var win = Titanium.UI.createWindow({
title:'DropDownTest',
backgroundColor:'#fff'
});win.add(wv);
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win
});tabGroup.addTab(tab1);
// open tab group
tabGroup.open(); -
Still no update on this? Here is the code to reproduce.
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');// create tab group
var tabGroup = Titanium.UI.createTabGroup();//
// create base UI tab and root window
//
var wv = Titanium.UI.createWebView({
url:'http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_option',
backgroundColor:'#fff'
});var win = Titanium.UI.createWindow({
title:'DropDownTest',
backgroundColor:'#fff'
});win.add(wv);
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win
});tabGroup.addTab(tab1);
// open tab group
tabGroup.open(); -
I am in this situation too. Titanium works well with iOS, but with Android it's very very bad.
-
Had the same problem today. Turns out that if the window with the webview is heavyweight, the dropdown selection appears behind that window.
Solution for me was to open the window lightweight (no modal, no navBarHidden, no fullscreen option)