Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked March 19th 2010 by Chuck Glidden
  • android
  • dropdown
  • html
  • list
  • select
  • webview
0 Comments

6 Answers

  • What version of Titanium are you using?

    — answered March 19th 2010 by Don Thorp
    permalink
    0 Comments
  • Titanium 1.0

    — answered March 19th 2010 by Chuck Glidden
    permalink
    0 Comments
  • 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();

    — answered April 7th 2010 by Chuck Glidden
    permalink
    0 Comments
  • 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();

    — answered April 7th 2010 by Chuck Glidden
    permalink
    0 Comments
  • I am in this situation too. Titanium works well with iOS, but with Android it's very very bad.

    — answered October 14th 2011 by Hieu Nguyen
    permalink
    0 Comments
  • 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)

    — answered October 22nd 2012 by Nils
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.