Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7034] iOS: Button - when both the "backgroundImage" and the "backgroundSelectedImage" are set, the customized white splash should be disabled.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-01-23T16:50:08.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0
Fix Version/sSprint 2012-02, Release 2.0.0, Release 1.8.1
ComponentsiOS
Labelsmodule_button, parity, qe-testadded
ReporterQing Gao
AssigneeVishal Duggal
Created2012-01-09T11:28:45.000+0000
Updated2012-10-18T00:46:26.000+0000

Description

PROBLEM DESCRIPTION

When both the "backgroundImage" and the "backgroundSelectedImage" are set in iOS button, the customized white splash for visual feedback should be disabled.

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
animation.png2012-01-13T16:30:44.000+000033337
testButton.png2012-01-11T16:33:56.000+00003473
testButton2.png2012-01-11T16:33:56.000+00003708

Comments

  1. Mauro Parra-Miranda 2012-01-11

    Hello, the behavior in 1.9 is to provide a kind of animation going from yellow to red with a nice white spot in the center. Wondering if it's an optical effect because the colors. Best, Mauro
  2. Michael Pettiford 2012-01-13

    Closing issue Tested with Ti Studio 1.0.8.201201101928 Ti Mob SDK 1.9.0.v20120111233134 OSX Lion iPhone 4S Expected behavior of feedback when pressing button is shown
  3. Michael Pettiford 2012-01-13

    Reopening/closing to add/remove labels
  4. James 2012-10-18

    This fixes the issue of being able to disable the Splash. But I am now unable to {color:red}*enable*{color} the splash. Its a very important part of our app. Since upgrading to 2.0 from 1.8 our app won't show the splash :-( here is more info on Q&A https://developer.appcelerator.com/question/143522/

JSON Source