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

Android: Button default style disappears when decrease, then increase opacity.

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Ti SDK 3.4.0.GA
      Ti CLI 3.4.0
      AppC Studio 3.4.0
      Android 4.4.2
      Alloy 1.5.1
      Mac OS X 10.9.5

      Description

      When we use setOpacity method in Ti classic or alloy project, button default style disappeared.

      TEST CODE:

       
      var win = Ti.UI.createWindow({
          backgroundColor:'#555'
      });
       
      var aButton = Ti.UI.createButton({
      	title : 'Click',
      	height : 'auto',
      	width : 'auto',
      	top : 50,
      });
       
      aButton.addEventListener('click', function() {
      	aButton.setOpacity(0.3);
          setTimeout(function () {
              aButton.setOpacity(1);
          }, 2000);
      });
       
      win.add(aButton); 
      win.open();
      

      STEPS TO REPRODUCE:
      • Create a simple project.
      • Update app.js with test code
      • Run on Android, check button default style
      • Click button, button style disappears (it should appear as default style)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hmrida Harish Mridha
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code