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

Android: touchFeedback property on ListView is ignored and true by default

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 9.3.0, Release 9.2.2, Release 9.3.1
    • Fix Version/s: Release 10.0.0
    • Component/s: Android
    • Labels:
      None
    • Environment:

      Android with at least sdk 9.2.x and 9.3.x

    • Story Points:
      5

      Description

      The touchFeedback property on Android is completely ignored on any Ti.UI.ListView. The documentation also mention this property is disabled by default but this is also not the case.

      Expected behaviour

      • touchFeedback should be disabled by default
      • touchFeedback property should be toggleable
      • touchFeedbackColor property should be customizable

      Reproducable code (from ListView documentation, altered)

      var win = Ti.UI.createWindow({backgroundColor: 'gray'});
      var listView = Ti.UI.createListView({touchFeedback: true, backgroundColor: "#000", touchFeedbackColor: "red"});
      var sections = [];
      var fruitDataSet = [
          {properties: { title: 'Apple'}},
          {properties: { title: 'Banana'}},
      ];
      var fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits', items: fruitDataSet});
       
      sections.push(fruitSection);
      var vegDataSet = [
          {properties: { title: 'Carrots'}},
          {properties: { title: 'Potatoes'}},
      ];
      var vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables', items: vegDataSet});
      sections.push(vegSection);
       
      listView.sections = sections;
      win.add(listView);
      win.open();
      var fishDataSet = [
          {properties: { title: 'Cod'}},
          {properties: { title: 'Haddock'}},
      ];
      var fishSection = Ti.UI.createListSection({ headerTitle: 'Fish', items: fishDataSet});
      listView.appendSection(fishSection);
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              topener Rene Pot
              Reviewer:
              Joshua Quick
              Tester:
              Samir Mohammed
            • Watchers:
              8 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