Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26378

Android: backgroundDisabledColor is ignored

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.5.0
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      3

      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.

        Attachments

          Activity

            People

            • Assignee:
              ybanev Yordan Banev
              Reporter:
              ybanev Yordan Banev
              Reviewer:
              Gary Mathews
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6574
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code