Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5011] backgroundLeftCap and backgroundTopCap dont work on Android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2011-09-01T10:00:21.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, api, deloitte, parity
ReporterAsim Siddiqui
AssigneeDon Thorp
Created2011-08-15T14:31:08.000+0000
Updated2017-03-29T16:21:56.000+0000

Description

backgroundLeftCap and backgroundRightCap has no effect. Image in button is still stretched. Test code to create button: var btn = Ti.UI.createButton({ title:'text', height:40, bottom: 10, right: 10, width:120, backgroundColor: 'blue', backgroundImage: 'ks_nav_ui.png', font: { fontSize: 15, fontWeight: 'bold', }, backgroundLeftCap:10, backgroundTopCap:5 });

Comments

  1. Marshall Culpepper 2011-09-01

    Unfortunately this is a fundamental platform difference, for Android you'll need to create a 9 patch PNG: http://developer.android.com/guide/developing/tools/draw9patch.html
  2. Lee Morris 2017-03-29

    Closing ticket as "Won't Fix".

JSON Source