Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
245 lines (245 sloc) 7.87 KB
{
"control": {
"MyCustomControl": {
"type": "Container",
"qualifiedType": "particle.core.view.controls.Container",
"definedType": "tweet.view.controls.MyCustomControl",
"properties": {
"x": 0,
"y": 0,
"width": "100%",
"height": "100",
"visible": true,
"alignment": 8,
"paddingTop": 0,
"bgColor": "#ffffffff",
"Touch_320x480": {
"alignment": 8
}
},
"children": [
{
"type": "ImageControl",
"name": "background",
"qualifiedType": "particle.core.view.controls.ImageControl",
"properties": {
"visible": true,
"maintainAspectRatio": false,
"scaling": true,
"width": "100%",
"bgColor": "#00000000",
"image": "backgroundImage",
"includeInLayout": false,
"height": "100%"
}
},
{
"type": "HorizontalContainer",
"name": "hlayout1",
"qualifiedType": "particle.core.view.controls.HorizontalContainer",
"properties": {
"visible": true,
"x": 0,
"y": 0,
"width": "100%",
"height": "100%",
"borderWidth": 1,
"borderColor": "#ffb3b3ff",
"alignment": 2,
"Touch_320x480": {
"width": "100%",
"alignment": 2
}
},
"children": [
{
"type": "HorizontalContainer",
"name": "hlayout2",
"qualifiedType": "particle.core.view.controls.HorizontalContainer",
"properties": {
"visible": true,
"Touch_320x480": {
"height": "100%",
"width": "18%",
"alignment": 8
},
"height": "100%",
"width": "18%",
"alignment": 8
},
"children": [
{
"type": "Container",
"name": "container2",
"qualifiedType": "particle.core.view.controls.Container",
"properties": {
"visible": true,
"alignment": 8,
"Touch_320x480": {
"alignment": 8
}
},
"children": [
{
"type": "ImageControl",
"name": "image1",
"qualifiedType": "particle.core.view.controls.ImageControl",
"properties": {
"visible": true,
"image": "_defaultAvatar",
"width": "48",
"height": "48",
"maintainAspectRatio": true,
"scaling": true
}
},
{
"type": "ImageControl",
"name": "ProfileImage",
"qualifiedType": "particle.core.view.controls.ImageControl",
"properties": {
"visible": true,
"scaling": true,
"maintainAspectRatio": true,
"borderColor": "#ff000000",
"alignment": 8,
"includeInLayout": true,
"width": "48",
"height": "48"
}
},
{
"type": "Button",
"name": "linkToProfile",
"qualifiedType": "particle.core.view.controls.Button",
"properties": {
"visible": true,
"width": "48",
"height": "48",
"normalImage": "",
"focusedImage": "",
"pressedImage": "",
"disabledImage": "",
"borderWidth": 2,
"borderColor": "#ff0080ff",
"pressedBgColor": "#aa80ffff"
}
}
]
}
]
},
{
"type": "VerticalContainer",
"name": "vlayout1",
"qualifiedType": "particle.core.view.controls.VerticalContainer",
"properties": {
"visible": true,
"width": "65%",
"height": "100%",
"styleName": "VerticalContainer1",
"Touch_320x480": {
"width": "65%"
}
},
"children": [
{
"type": "Label",
"name": "User",
"qualifiedType": "particle.core.view.controls.Label",
"properties": {
"visible": true,
"width": "100%",
"font": "Arial_15",
"autoWrap": true,
"text": "the username of the tweet",
"paddingLeft": 10,
"paddingTop": 10,
"paddingBottom": 5,
"ellipsis": true
}
},
{
"type": "Label",
"name": "text",
"qualifiedType": "particle.core.view.controls.Label",
"properties": {
"visible": true,
"text": "Label",
"autoWrap": true,
"ellipsis": true,
"width": "100%",
"height": "50",
"paddingLeft": 10,
"font": "_Arial_11"
}
}
]
},
{
"type": "HorizontalContainer",
"name": "hlayout3",
"qualifiedType": "particle.core.view.controls.HorizontalContainer",
"properties": {
"visible": true,
"width": "18%",
"Touch_320x480": {
"width": "18%",
"height": "100%",
"alignment": 8
},
"height": "100%",
"alignment": 8
},
"children": [
{
"type": "Button",
"name": "_launchExternalBrowserButton",
"qualifiedType": "particle.core.view.controls.Button",
"properties": {
"visible": true,
"styleName": "browserButton",
"enabled": true
}
}
]
}
]
},
{
"type": "LabeledImageControl",
"name": "_MytoolTip",
"qualifiedType": "particle.core.view.controls.LabeledImageControl",
"properties": {
"visible": true,
"text": "Labeled Image",
"y": 9,
"width": "80%",
"height": "82",
"image": "toolTip1",
"textColor": "#ffffffff",
"scaling": true,
"ellipsis": true,
"autoWrap": true,
"maintainAspectRatio": false,
"font": "Arial_15",
"paddingBottom": 10,
"paddingLeft": 20,
"paddingRight": 30,
"Touch_320x480": {
"width": "80%",
"alignment": 8,
"autoWrap": true,
"includeInLayout": true,
"x": 10
},
"alignment": 8,
"includeInLayout": true,
"x": 10
}
}
]
}
},
"version": "1"
}
Jump to Line
Something went wrong with that request. Please try again.