[TIMOB-7034] iOS: Button - when both the "backgroundImage" and the "backgroundSelectedImage" are set, the customized white splash should be disabled.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-23T16:50:08.000+0000 |
Affected Version/s | Release 1.8.0.1, Release 2.0.0 |
Fix Version/s | Sprint 2012-02, Release 2.0.0, Release 1.8.1 |
Components | iOS |
Labels | module_button, parity, qe-testadded |
Reporter | Qing Gao |
Assignee | Vishal Duggal |
Created | 2012-01-09T11:28:45.000+0000 |
Updated | 2012-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
File | Date | Size |
---|---|---|
animation.png | 2012-01-13T16:30:44.000+0000 | 33337 |
testButton.png | 2012-01-11T16:33:56.000+0000 | 3473 |
testButton2.png | 2012-01-11T16:33:56.000+0000 | 3708 |
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
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
Reopening/closing to add/remove labels
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/