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

Android: Add "imageTouchFeedback" to Ti.UI.ImageView

    Details

    • Story Points:
      3

      Description

      Summary:
      On Android, the touchFeedback property applies ripple effect to a view's "background" when the view is touched. When applied to a Ti.UI.ImageView, this ripple effect can't be seen if the image is opaque (ie: not transparent) and completely covers the view. This is not a bug, but app developers would like the ability to apply a touch ripple effect to the foreground "image".

      Feature Proposal:
      Add the following properties to Ti.UI.ImageView...

      • imageTouchFeedback // boolean
      • imageTouchFeedbackColor // optional string

      When the new "imageTouchFeedback" property is set true, the ripple effect should be applied to the foreground image assigned via the "image" property.

      Example Code:

      const window = Ti.UI.createWindow();
      window.add(Ti.UI.createImageView({
      	image: "https://raw.githubusercontent.com/appcelerator/titanium_mobile/master/tests/Resources/ExifRotate90.jpg",
      	imageTouchFeedback: true,
      	imageTouchFeedbackColor: "yellow",
      	autorotate: true,
      }));
      window.open();
      

      Work-Around:
      For older Titanium versions, you can apply a touch ripple effect via the "backgroundImage" instead. The downside with this is that images are not loaded asynchronously via this property and the EXIF orientation is ignored.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
            • Watchers:
              2 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