Skip to content

Available Properties

tsiougkosn edited this page Jan 27, 2015 · 19 revisions

Available Properties

Name Type Example
layout_width dimen {"name":"layout_width", "type":"dimen", "value":"match_parent"}
{"name":"layout_width", "type":"dimen", "value":"250dp"}
{"name":"layout_width", "type":"dimen", "value":"90%"}
layout_height dimen {"name":"layout_width", "type":"dimen", "value":"50dp"}
id ref {"name":"id", "type":"ref", "value":"closeBtn"}
padding_left
padding_right
padding_top
padding_bottom
padding
dimen {"name":"padding", "type":"dimen", "value":"8dp"}
layout_marginLeft
layout_marginRight
layout_marginTop
layout_marginBottom
layout_margin
dimen {"name":"layout_margin", "type":"dimen", "value":"16dp"}
background color {"name":"background", "type":"color", "value":"#00FF00"}
ref {"name":"background", "type":"ref", "value":"drawable_name_in_res_folder"}
base64 {"name":"background", "type":"base64", "value":"BASE64_ENCODE_OF_PNG_IMAGE"}
drawable ```{"name":"background", "type":"drawable", "value": {"CORNER": "10dp
enabled boolean {"name":"enabled", "type":"boolean", "value":"true"}
selected boolean {"name":"selected", "type":"boolean", "value":"t"}
clickable boolean {"name":"clickable", "type":"boolean", "value":"0"}
Clone this wiki locally