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

Android: Add TableView "scrollable" property support

    Details

    • Story Points:
      1
    • Sprint:
      2018 Sprint 05 SDK, 2018 Sprint 04 SDK

      Description

      Summary:
      A TableView on iOS supports a "scrollable" property which can enable/disable touch scrolling by the end-user. We should add support on Android as well for parity.
      (Note: Android ListViews already supports a similar feature.)

      Test:

      var window = Ti.UI.createWindow();
      var tableData = [];
      for (var index = 1; index <= 100; index++) {
      	var row = Ti.UI.createTableViewRow({ title: "Row " + index.toString() });
      	tableData.push(row);
      }
      var tableView = Ti.UI.createTableView(
      {
      	data: tableData,
      	scrollable: true,
      });
      window.add(tableView);
      function createButtonText() {
      	return tableView.scrollable ? "Disable Scrolling" : "Enable Scrolling";
      }
      var button = Ti.UI.createButton(
      {
      	title: createButtonText(),
      	right: "5dp",
      	bottom: "5dp",
      });
      button.addEventListener("click", function(e) {
      	tableView.scrollable = !tableView.scrollable;
      //	tableView.setScrollable(!tableView.getScrollable());
      	button.title = createButtonText();
      });
      window.add(button);
      window.open();
      

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
              Tester:
              Lokesh Choudhary
            • 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 Source Code