Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-541

Android: large TableViews take much longer to load or fail to open

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: Alloy 1.0.0
    • Fix Version/s: 2013 Sprint 06
    • Component/s: Titanium SDK
    • Labels:
      None
    • Environment:

      Alloy 1.0.0
      TiSDK 3.0.2 GA
      Android devices (tested with Nexus 4 OS 4.2)

      Description

      Problem description

      Creating a large Table View (around 300 TableViewRows) is taking a long time, eventually failing to load.

      Alloy version:
      index.xml

      <Alloy>
      	<Window class="container">
      		<TableView id='table'></TableView>
      	</Window>
      </Alloy>
      

      index.js

      var data = [];
       
      for (var i=0;i<300;i++){
          var tvr = Ti.UI.createTableViewRow({
              title:'test' + i,
          });
          
          data.push(tvr);
       
          $.table.setData(data);
      };
       
      $.index.open();
      

      non-alloy version:

      var win = Ti.UI.createWindow({
      	backgroundColor:'white'
      });
       
      var data = [];
       
      for (var i =0; i<300;i++){
      	var tvr = Ti.UI.createTableViewRow({
      		title: 'test' + i
      	});
       
      	data.push(tvr);
      };
       
      var tv = Ti.UI.createTableView({
      	data:data
      });
       
      win.add(tv);
       
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tlukasavage Tony Lukasavage
                Reporter:
                fcasali Federico Casali
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration