Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-3452

Android: Must click TextField twice in TableViewRow in 2nd Tab inside TabGroup to display keyboard

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 1.7.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Ti SDK 1.7.0 and Android 2.2,2.3.1 and 2.3.3

      Description

      {html}<div><p>Environment:</p>
      <ul>
      <li>TiDev 1.2.2</li>
      <li>Ti SDK 1.6.1</li>
      <li>Android SDK 2.2</li>
      <li>tested in emulator only</li>
      </ul>
      <p>This issue was first discovered by user "JH" in this <a href=
      "http://developer.appcelerator.com/question/117540/textfield-on-tableview-loses-focus-android#">
      Q&A post</a></p>
      <p>With a textField added to a tableViewRow on a secondary tab, the
      user must click it twice to display a numeric keyboard. This is
      demonstrated by the following code:<br></p>
      <pre>
      <code>var win1 = Ti.UI.createWindow({ title:"Window 1" });

      var tab1 = Ti.UI.createTab({ title:"Tab 1", window: win1 });

      var win2 = Ti.UI.createWindow({ title:"Window 2" });

      var row = Ti.UI.createTableViewRow({});
      var tF = Ti.UI.createTextField({ keyboardType:Ti.UI.KEYBOARD_NUMBERS_PUNCTUATION, width:300 });

      row.add(tF);
      var tV = Ti.UI.createTableView({data:[row]});
      //win1.add(tV); // this works as expected
      win2.add(tV); // this demonstrates the issue

      var tab2 = Ti.UI.createTab({ title:'Tab 2', window: win2 });

      var tabGroup = Ti.UI.createTabGroup();
      tabGroup.addTab(tab1);
      tabGroup.addTab(tab2);
      tabGroup.open();</code>
      </pre>
      <p>The issue does not exist when a tableView or tabGroup are not
      used, and 1.5.1 exhibits the correct behavior</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              krowley Karl Rowley
              Reporter:
              pdowsett Paul Dowsett
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-2963
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration