{ "templates": { "action_button": { "type": "text", "width": { "type": "match_parent" }, "height": { "type": "fixed", "value": 48 }, "margins": { "left": 12, "top": 16, "right": 12 }, "border": { "corner_radius": 8 }, "background": [ { "type": "solid", "color": "#0e000000" } ], "alignment_vertical": "bottom", "alignment_horizontal": "center", "font_size": 16, "font_weight": "medium", "text_alignment_vertical": "center", "text_alignment_horizontal": "center", "text_color": "#000000", "&text": "text", "&actions": "actions" } }, "card": { "log_id": "root_card", "states": [ { "state_id": 0, "div": { "type": "container", "width": { "type": "match_parent", "weight": 1 }, "height": { "type": "wrap_content" }, "orientation": "vertical", "content_alignment_horizontal": "center", "content_alignment_vertical": "bottom", "items": [ { "type": "text", "text": "Circle", "margins": { "top": 70, "bottom": 44 }, "width": { "type": "fixed", "value": 120 }, "height": { "type": "fixed", "value": 120 }, "border": { "corner_radius": 60 }, "background": [ { "type": "solid", "color": "#FFCC00" } ], "text_alignment_vertical": "center", "text_alignment_horizontal": "center", "font_size": 18 }, { "type": "action_button", "text": "Change state (temporary)", "actions": [ { "log_id": "change_state", "url": "div-action://set_state?state_id=1&temporary=true" } ] }, { "type": "action_button", "text": "Change state", "actions": [ { "log_id": "change_state", "url": "div-action://set_state?state_id=1&temporary=false" } ] } ] } }, { "state_id": 1, "div": { "type": "container", "width": { "type": "match_parent", "weight": 1 }, "height": { "type": "wrap_content" }, "orientation": "vertical", "content_alignment_horizontal": "center", "content_alignment_vertical": "bottom", "items": [ { "type": "text", "text": "Square", "width": { "type": "fixed", "value": 120 }, "height": { "type": "fixed", "value": 120 }, "margins": { "top": 70, "bottom": 44 }, "background": [ { "type": "solid", "color": "#e1bae3" } ], "text_alignment_vertical": "center", "text_alignment_horizontal": "center", "font_size": 18 }, { "type": "action_button", "text": "Change state (temporary)", "actions": [ { "log_id": "change_state", "url": "div-action://set_state?state_id=0&temporary=true" } ] }, { "type": "action_button", "text": "Change state", "actions": [ { "log_id": "change_state", "url": "div-action://set_state?state_id=0&temporary=false" } ] } ] } } ] } }