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

Android: touchFeedback / ripple does not work when tapped from child view

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 10.0.0
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      3

      Description

      On Android, the touchFeedback property aka ripple does not work when tapped from child view. This is a common issue especially for list views, since Titanium now behaves very different to the native default behavior which handles ripple automatically. Please fix this basic issue.

      See the below code for details. Expected: The ripple color is shown for all touches. Actual: It only applies the ripple when tapped on the view itself. Bubbling does also not work.

      var win = Ti.UI.createWindow();
       
      var myTemplate = {
          childTemplates: [{
              type: 'Ti.UI.Label',
              bindId: 'title',
              properties: {
                  left: 20
              }
          }]
      };
       
      var list = Ti.UI.createListView({
          templates: {
              'template': myTemplate
          },
          defaultItemTemplate: 'template',
          sections: [
              Ti.UI.createListSection({
                  items: [{
                      properties: {
                          backgroundColor: '#fff',
                          touchFeedback: true,
                          touchFeedbackColor: 'red',
                          height: 50,
                          itemId: 'my_cell'
                      },
                      title: {
                          text: 'My Title (click here)',
                          color: '#000'
                      }
                  }]
              })
          ]
      });
       
      win.add(list);
      win.open();

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              hknoechel Hans Knöchel
              Reviewer:
              Joshua Quick
              Tester:
              Samir Mohammed
            • Watchers:
              9 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