[AC-2422] Android: backgroundSelectedColor and backgroundSelectedImage occasionally "stuck"
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-12-23T02:40:54.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | 3.1.1, 3.1.3, android, backgroundColor, backgroundSelectedColor |
Reporter | Mark Mokryn |
Assignee | Ritu Agrawal |
Created | 2013-09-11T12:44:06.000+0000 |
Updated | 2016-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
File | Date | Size |
---|---|---|
Screenshot_2013-09-11-12-58-27.png | 2013-09-11T12:44:06.000+0000 | 25588 |