[TIMOB-2099] Android: border properties broken for Label
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-06-11T16:06:59.000+0000 |
Affected Version/s | Release 1.5.0 |
Fix Version/s | Release 2.1.0 |
Components | Android |
Labels | parity, qe-testadded, training |
Reporter | Robby |
Assignee | Josh Roesslein |
Created | 2011-04-15T03:10:25.000+0000 |
Updated | 2012-11-05T19:54:06.000+0000 |
Description
Adding "border:1, borderColor:'black'" to a label works fine on 1.4.1 under iOS, but not on 1.4.2 under Android. Under android, the entire label is blacked out, instead of a border being placed around the label.
Comments
- Dawson Toth 2011-04-15
We have a pro client interested in this now.
Problem
On Android using borderColor on a view results in the view being completely filled with the borderColor.
Tested On
All tests were done with Titanium Mobile SDK 1.5.1
On iOS this code produces a 200x300 box with rounded corners and a blue border.
On Android this code produces a solid 200x300 blue box with rounded corners.Sample Code
var borderWindow = Ti.UI.createWindow({ height: 200, width: 300, top: 20 }); var borderView = Ti.UI.createView({ height: 200, width: 300, top: 0, borderRadius: 10, borderWidth: 2, borderColor: 'blue', textAlign: 'center', /*backgroundColor: 'white',*/ /* Adding "backgroundColor: 'white'" to the borderView, produces the same box but with a lighter blue due to the "opacity: '.6'" property. */ opacity: '.6' }); borderWindow.add(borderView); borderWindow.open();
Associated Helpdesk Ticket
http://developer.appcelerator.com/helpdesk/view/65641">http://developer.appcelerator.com/helpdesk/view/65641
- Matthew Congrove 2011-08-16 +! from another Pro. HD: 777694
- Josh Roesslein 2012-06-11 This appears to be resolved now.
- Dustin Hyde 2012-06-15 Closing as Fixed. SDK: 2.1.0.v20120614172251 Studio: 2.1.0.201206141932 OS: Snow Leopard Android Runtime: V8 Devices Tested: Android Emulator 2.2/2.3.3, GSlate 3.1