[TIMOB-26378] Android: backgroundDisabledColor is ignored
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2018-09-14T14:47:03.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 7.5.0 |
| Components | Android |
| Labels | n/a |
| Reporter | Yordan Banev |
| Assignee | Yordan Banev |
| Created | 2018-09-11T12:48:13.000+0000 |
| Updated | 2018-09-14T18:07:15.000+0000 |
Description
Property
backgroundDisabledColor is ignored for Ti.UI.View.
*Sample:*
_app.js_
var win = Ti.UI.createWindow({
layout: 'vertical'}),
view = Ti.UI.createView({
top: 50,
width: 100,
height: 100,
backgroundColor: 'red',
backgroundDisabledColor: 'gray'}),
button = Ti.UI.createButton({
title: 'toggle'
});
view.addEventListener('click', function () {
Ti.API.info('Click!');
});
button.addEventListener('click', function () {
view.enabled = !view.enabled;
});
win.add([view, button])
win.open();
Clicking the button changes the state of the view, but the background color stays the same. It is expected that the color changes accordingly to the enabled state.
Edit: The previous version of the sample was not the best one.
*FR Passed* PR: https://github.com/appcelerator/titanium_mobile/pull/10317
Verified the fix on master branch SDK 7.5.0.v20180914072924. Works fine. Closing
Name = Mac OS X Version = 10.13.6 Node.js Node.js Version = 8.9.1 npm Version = 5.5.1 Titanium CLI CLI Version = 5.1.1 Titanium SDK SDK Version = 7.5.0.v20180914072924 Samsung galaxy s5 -android6 Google pixel emulator- android7