Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2422] Android: backgroundSelectedColor and backgroundSelectedImage occasionally "stuck"

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-12-23T02:40:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels3.1.1, 3.1.3, android, backgroundColor, backgroundSelectedColor
ReporterMark Mokryn
AssigneeRitu Agrawal
Created2013-09-11T12:44:06.000+0000
Updated2016-03-08T07:41:27.000+0000

Description

Clicking through labels that have backgroundColor and backgroundSelectedColor defined - occasionally the backgroundSelectedColor is not removed after the finger is lifted. This bug happens on occasion, apparently at random, but often enough to be quite annoying and make the app look unprofessional. See attached image - I reached a point where two labels were "selected" when I was no longer touching the screen. Just click through the labels, at various speeds, may take a few minutes to occur - but it will probably happen. index.xml:
<Alloy>
	<Window class="container">	
		<Label id="label1">Label 1</Label>
		<Label id="label2">Label 2</Label>
		<Label id="label3">Label 3</Label> 
	</Window>
</Alloy>
index.tss
".container": {
	backgroundColor:"white"
},
"#label1": {
	top: '10dp',
	width: Ti.UI.SIZE,
	height: Ti.UI.SIZE,
	color: "#000",
	font: {fontSize:'40dp'},
	backgroundColor: "transparent",
	backgroundSelectedColor: "blue",
	textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
},
"#label2": {
	top: '100dp',
	width: Ti.UI.SIZE,
	height: Ti.UI.SIZE,
	color: "#000",
	font: {fontSize:'40dp'},
	backgroundColor: "transparent",
	backgroundSelectedColor: "blue",
	textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
},
"#label3": {
	top: '180dp',
	width: Ti.UI.SIZE,
	height: Ti.UI.SIZE,
	color: "#000",
	font: {fontSize:'40dp'},
	backgroundColor: "transparent",
	backgroundSelectedColor: "blue",
	textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
}    
index.js
$.index.open();

Attachments

FileDateSize
Screenshot_2013-09-11-12-58-27.png2013-09-11T12:44:06.000+000025588

Comments

  1. Mark Mokryn 2013-09-11

  2. Mark Mokryn 2013-09-18

  3. Motiur Rahman 2013-09-23

    Hi Mark M, I have tested your code all of the version of titanium sdk it don't reproduce again.I think your device problem please check it again. Thanks,
  4. Mark Mokryn 2013-09-23

    It's very easily reproducible - it's a duplicate of TIMOB-14940, and I even submitted a PR for it, as you can see in that ticket. You can close this ticket as a duplicate of that one - but it's definitely not an individual device issue. Thanks.
  5. Ritu Agrawal 2013-12-23

    Mark - TIMOB-14940 was resolved in 3.2.0 GA release so I would appreciate if you can test it out with the latest release and let us know if the issue persists.
  6. Mark Mokryn 2013-12-23

    Fixed, thanks

JSON Source