[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