Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9497] Android: Button: Button with BackgroundImage flickers on click

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-06-13T17:01:51.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, qe-and060112, regression
ReporterSatyam Sekhri
AssigneeHieu Pham
Created2012-06-12T09:25:33.000+0000
Updated2017-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

FileDateSize
slightlylargerimage.png2012-06-12T09:25:33.000+00001609

Comments

  1. Hieu Pham 2012-06-13

    This should be fixed on latest master.
  2. Neeraj Gupta 2012-06-13

    Duplicate of TIMOB-9445.
  3. Lee Morris 2017-03-21

    Closing ticket as duplicate.

JSON Source