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: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Labels:

      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:
              ybanev Yordan Banev
              Reporter:
              hknoechel Hans Knöchel
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration