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

Android: TableView.headerView cannot be set after setting data

    Details

    • Story Points:
      0
    • Sprint:
      2020 Sprint 23

      Description

      In the following example, the headerView doesn't show:

      var w = Ti.UI.createWindow({
          backgroundColor: '#fff'
      });
       
      var t = Ti.UI.createTableView();
      var d = [];
       
      for (var i = 0; i < 25; i++) {
          d.push(Ti.UI.createTableViewRow({
              title: 'Row ' + i
          }));
      }
       
      t.setData(d);
      t.headerView = Ti.UI.createView({
          width: Ti.UI.FILL,
          height: 50,
          backgroundColor: 'red'
      });
       
      w.add(t);
      w.open();
      

      But if you set the headerView before calling setData it does.

        Attachments

          Activity

            People

            • Assignee:
              sunila Sunila
              Reporter:
              fokkezb Fokke Zandbergen
              Reviewer:
              Hieu Pham
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration