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

Android : TableView Section - v8 - Section headers not being displayed in table view

    Details

      Description

      Steps to reproduce:

      1. Create a default mobile project in Ti Studio
      2. Drop the following code into app.js:

       
      var win = Titanium.UI.createWindow({  
          title:'test',
          backgroundColor:'#fff'
      });
       
      var label = Ti.UI.createLabel({
      	text: 'Pass if Section 1 has 1 row, Section 2 has 2 rows , and Section 3 has 3 rows',
      	top: 20,
      	left: 10,
      	height: Ti.UI.SIZE,
      	width: Ti.UI.SIZE,
      	color: 'black'
      });
       
      var view1 = Ti.UI.createView({
      	height: 30,
      	width: 60,
      	top: 80,
      	backgroundColor: 'green'
      });
       
      var section = Titanium.UI.createTableViewSection();
      section.headerTitle = "Section 1";
      var row1 = Titanium.UI.createTableViewRow({title:"Hello 1"});
      section.add(row1);
       
      var section2 = Titanium.UI.createTableViewSection();
      section2.headerTitle = "Section 2";
      var row3 = Titanium.UI.createTableViewRow({title:"Hello 1"});
      var row4 = Titanium.UI.createTableViewRow({title:"Hello 2"});
       
      section2.add(row3);
      section2.add(row4);
       
      var section3 = Titanium.UI.createTableViewSection();
      section3.headerTitle = "Section 2";
      var row6 = Titanium.UI.createTableViewRow({title:"Hello 1"});
      var row7 = Titanium.UI.createTableViewRow({title:"Hello 2"});
      var row8 = Titanium.UI.createTableViewRow({title:"Hello 2"});
       
      section3.add(row6);
      section3.add(row7);
      section3.add(row8);
       
      var tableView = Ti.UI.createTableView({
      	top: 70,
      	data: [section, section2, section3]
      });
       
       
      win.add(tableView);
      win.add(label);
      win.open();
      

      2. Run the app

      Actual result:
      Table view is displayed without section headers

      Expected result:
      Section headers are dispayed

        Attachments

          Activity

            People

            • Assignee:
              krowley Karl Rowley
              Reporter:
              mpettiford Michael Pettiford
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration