[TIMOB-9497] Android: Button: Button with BackgroundImage flickers on click
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-06-13T17:01:51.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, qe-and060112, regression |
Reporter | Satyam Sekhri |
Assignee | Hieu Pham |
Created | 2012-06-12T09:25:33.000+0000 |
Updated | 2017-03-21T22:40:47.000+0000 |
Description
Clicking on the button with backgroundImage flickers on click on the button. The buttons is hidden till the touch end happens.
Regression. This does not happen on 2.0.2
Steps to Reproduce:
1. Create an application with the code below
2. Run the application
3. Click on the button
Actual: The button gets hidden on click event. The button is shown again when touch event ends
Expected: The button should not flicker/hide on click.
App.js
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var button = Titanium.UI.createButton({
height:60,
width:80,
backgroundImage:'slightlylargerimage.png'
});
win.add(button);
button.addEventListener('click', function() {
alert('clicking');
})
win.open();
Attachments
File | Date | Size |
---|---|---|
slightlylargerimage.png | 2012-06-12T09:25:33.000+0000 | 1609 |
This should be fixed on latest master.
Duplicate of TIMOB-9445.
Closing ticket as duplicate.