Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7118] iOS: Button - Animation not working when both the "backgroundImage" and the "backgroundSelectedImage" are set

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2012-02-09T23:48:52.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterQing Gao
AssigneeMax Stepanov
Created2012-01-11T16:45:48.000+0000
Updated2012-02-09T23:48:52.000+0000

Description

DESCRIPTION

When both the "backgroundImage" and the "backgroundSelectedImage" are set in iOS button, the customized button won't change from one to the other. I added a click event to see if the event is being fired, and it's fired just fine, but you won't see the animation.

Repro Steps:

Step 1: add the attached image to your Resources folder Step 2: run the code below Step 3: click the button
var win = Titanium.UI.createWindow();  

var button = Ti.UI.createButton({
    width:207, 
    height:80, 
    top:0, 
    left:0,
    backgroundColor:'#000',
    color:'#000',
    backgroundSelectedImage:'testButton2.png',
    backgroundImage: 'testButton.png',
});

button.addEventListener('click',function(){
	Ti.API.info('clicked button');
});

win.add(button);
win.open();

Attachments

FileDateSize
testButton.png2012-01-11T16:46:21.000+00003541
testButton2.png2012-01-11T16:46:21.000+00003859

Comments

  1. Max Stepanov 2012-01-17

    Verified that the issue is fixed by TIMOB-7034.
  2. Thomas Huelbert 2012-01-23

    closing based on Max's comments and linked bug being closed.
  3. Wilson Luu 2012-01-23

    Closing bug. This bug is a duplicate of TIMOB-7034

JSON Source