[TIMOB-26380] Android: touchFeedback does not work with color states
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android |
| Labels | n/a |
| Reporter | Yordan Banev |
| Assignee | Yordan Banev |
| Created | 2018-09-11T15:01:03.000+0000 |
| Updated | 2018-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.
No comments