Details
-
Type:
Story
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: Release 3.1.0
-
Fix Version/s: Release 3.1.0, 2013 Sprint 04 API
-
Component/s: Android
-
Labels:None
Description
In Android, when a property is set to null, we need to define default behavior for each property.
var label = Ti.UI.createLabel({
|
text: 'hi',
|
//html: null,
|
color: null,
|
highlightedColor: null,
|
font: null,
|
textAlign: null,
|
verticalAlign: null,
|
ellipzise: null,
|
wordWrap: null,
|
autoLink: null,
|
layout: null,
|
size: null,
|
left: null,
|
top: null,
|
center: null,
|
right: null,
|
bottom: null,
|
transform: null,
|
backgroundColor: null
|
});
|
var image = Ti.UI.createImageView({
|
width: null,
|
height: null,
|
images: null,
|
canScale: null,
|
image: null,
|
defaultImage: null
|
|
});
|
var win = Ti.UI.createWindow();
|
win.add(label);
|
win.open();
|
1.Run code, app shouldn't crash, you should see the text 'hi'