Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2595] Android: Border property not working for buttons

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-04T21:30:16.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterVinothbabu
AssigneeMauro Parra-Miranda
Created2013-01-07T04:21:37.000+0000
Updated2016-03-08T07:41:40.000+0000

Description

*Problem description* Border property is not working for Android Buttons in Galaxy 10 inch tablet with ICS. *Code (JS)*
var submitButton = Ti.UI.createButton(pm.combine($$.Button, {
    title: 'Sign In',
    top: 0,
    left: 0,
    font: {
        fontSize: 20,
        fontWeight: 'bold'
    },
    width: vertViewBtn.width,
    height: vertViewBtn.height,
    borderRadius: 10
}));
*Code (Styling)*
Button: {
    backgroundImage: '/library/images/green-button-bg.png',
    backgroundSelectedImage: '/library/images/buttonselect-bg.png',
    height: (Ti.Platform.displayCaps.platformHeight * 0.95) * 0.06,
    width: Ti.Platform.displayCaps.platformWidth * 0.12,
    color: '#FFF',
    font: {
        fontSize: 16,
        fontWeight: 'bold',
        fontFamily: 'Helvetica'
    },
    borderRadius: 5,
    borderWidth: 5
},

Comments

  1. Daniel Sefton 2013-01-09

    Hi Vinothbabu, Is this Alloy? And I'm guessing you're on SDK version 3.0 GA? Thanks.
  2. Vinothbabu 2013-01-09

    Yes we are on SDK 3.0 GA. We are not using alloy.
  3. Daniel Sefton 2013-01-09

    Is this JSS? Because that is an outdated approach and is no longer maintained. Does the same thing happen without the stylesheet?
  4. Vinothbabu 2013-01-09

    Its not because of JSS, we tried without using JSS and still does not work.

JSON Source