Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-88] Support Stretchable Images in Buttons - Android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:51:56.000+0000
Affected Version/sn/a
Fix Version/sRelease 0.6.2
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeDon Thorp
Created2011-04-15T02:23:32.000+0000
Updated2011-04-17T01:51:56.000+0000

Description

for example:

var button1 = Titanium.UI.createButton({
    id:'button1',
    backgroundImage:'blue.png',
    backgroundSelectedImage:'blue_pressed.png',
    backgroundFocusedImage:'blue_focused.png',
    title:'Hello',
    color:'#ffffff',
    height:47,
});

where each .png is a small blue image that is stretched based on the width of the button control

Comments

No comments

JSON Source