Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13995] Android: Button image is not centered

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.0, Release 3.2.0
Fix Version/sn/a
ComponentsAndroid
Labelsparity
ReporterDaniel Sefton
AssigneeUnknown
Created2013-05-27T10:34:06.000+0000
Updated2018-02-28T20:03:33.000+0000

Description

*Problem* The image set on a button is not centered on Android. It's centered on iOS. *Test case*
var win = Ti.UI.createWindow({
	title : 'test',
	backgroundColor : 'black',
});

var button = Ti.UI.createButton({
	backgroundColor : 'orange',
	image : 'KS_nav_ui.png',
	width : 300,
	height : 300
});

win.add(button);
win.open();

Comments

  1. Aleks 2015-09-29

    Please fix this bug asap. I need it urgently for my university project.

JSON Source