[TIMOB-5011] backgroundLeftCap and backgroundTopCap dont work on Android
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Won't Fix |
| Resolution Date | 2011-09-01T10:00:21.000+0000 |
| Affected Version/s | Release 1.7.2 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | android, api, deloitte, parity |
| Reporter | Asim Siddiqui |
| Assignee | Don Thorp |
| Created | 2011-08-15T14:31:08.000+0000 |
| Updated | 2017-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
});
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
Closing ticket as "Won't Fix".