Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26380] Android: touchFeedback does not work with color states

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterYordan Banev
AssigneeYordan Banev
Created2018-09-11T15:01:03.000+0000
Updated2018-09-11T15:01:03.000+0000

Description

If a view uses a color state background touchFeedback property has no effect. Example: _app.js_
var win = Ti.UI.createWindow({
    layout: 'vertical'}),
  view1 = Ti.UI.createView({
    top: 50,
    width: 100,
    height: 100,
    touchFeedback: true,
    backgroundColor: 'red',
    backgroundFocusedColor: 'yellow'}),
  view2 = Ti.UI.createView({
    top: 50,
    width: 100,
    height: 100,
    touchFeedback: true,
    backgroundColor: 'red'});

win.add([view1, view2])
win.open();
You can see that the view with a defined backgroundFocusedColor loses the touchFeedback effect. That should not be the case, because the backgroundColor is still a solid color.

Comments

No comments

JSON Source