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

Android: TabGroup - Black screen appears on launch

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Hold
    • Affects Version/s: Release 2.1.4
    • Component/s: Android
    • Labels:
    • Environment:

      Tested on:
      Titanium Studio, build: 3.0.0.201210271747
      Titanium SDK, build: 2.1.4.v20121026164613
      Device: Nexus 7 (4.1.1), Samsung Galaxy SIII (4.0.4)

      Description

      Description:
      While testing TabGroup I noticed black screen appears instead of tableView with 500 rows. It happens always on a first run (after installation).
      This is not a regression, the behavior exists on 2.1.3 as well.
      Does not happen on 2.1.2 and 3.0.0.

      Steps:
      1. Run the following code:

         (function() {
           
          var create = function() {
               
              var tabGroupWrapper = {}, tabWrapper = {}, winWrapper = {}, tableViewWrapper = {}, buttonWrapper = {};
               
              tabGroupWrapper.Element = Ti.UI.createTabGroup();
               
              winWrapper.Element = Ti.UI.createWindow({ navBarHidden: true, backgroundColor: '#fc9', layout: 'vertical' });
               
              tabWrapper.Element = Ti.UI.createTab({ title: 'Test', window: winWrapper.Element });
               
              tabGroupWrapper.Element.addTab(tabWrapper.Element);
               
              tableViewWrapper.Element = Ti.UI.createTableView();
               
              var data = [];
               
              for (var i = 1; i <= 500; ++i) {
                  data.push({ title: 'Row ' + i});
              }
               
              tableViewWrapper.Element.setData(data);
               
              buttonWrapper.Element = Ti.UI.createButton({
                  title: 'Create new tabgroup!'
              });
               
              buttonWrapper.Element.addEventListener('click', function() {
                  create();
              });
               
              winWrapper.Element.add(buttonWrapper.Element);
              winWrapper.Element.add(tableViewWrapper.Element);
               
              tabGroupWrapper.Element.setActiveTab(0);
               
              tabGroupWrapper.Element.open();
               
          };
           
          create();          
      })();
      

      Expected result:
      Should see tableView with 500 rows and "Create new tabgroup" button

      Actual:
      Black screen appears

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hpham Hieu Pham
                Reporter:
                tsmolich Tamila Smolich
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration