Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2099] Android: border properties broken for Label

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-06-11T16:06:59.000+0000
Affected Version/sRelease 1.5.0
Fix Version/sRelease 2.1.0
ComponentsAndroid
Labelsparity, qe-testadded, training
ReporterRobby
AssigneeJosh Roesslein
Created2011-04-15T03:10:25.000+0000
Updated2012-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

  1. 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

  2. Matthew Congrove 2011-08-16

    +! from another Pro. HD: 777694
  3. Josh Roesslein 2012-06-11

    This appears to be resolved now.
  4. 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

JSON Source