-
Notifications
You must be signed in to change notification settings - Fork 192
Layouts
Aditya Sharat edited this page Feb 17, 2016
·
9 revisions
A proteus layout is a json object
where keys
are view attributes and values
are values that will assigned to that view attribute.
{
"type": "LinearLayout",
"layout_width": "match_parent",
"layout_height": "wrap_content",
"orientation": "vertical",
"padding": "16dp",
"background": "#ffffff",
"children": [
{
"type": "TextView",
"text": "Hello World !!",
"textColor": "#000000",
"textSize": "12sp"
}
]
}
-
type
: The type of view to create. Must be a string -
children
: The children of this view. Must be an array