Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26378] Android: backgroundDisabledColor is ignored

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2018-09-14T14:47:03.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.5.0
ComponentsAndroid
Labelsn/a
ReporterYordan Banev
AssigneeYordan Banev
Created2018-09-11T12:48:13.000+0000
Updated2018-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.

Comments

  1. Josh Longton 2018-09-14

    *FR Passed* PR: https://github.com/appcelerator/titanium_mobile/pull/10317
  2. Keerthi Mahalingam 2018-09-14

    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

JSON Source