1column {
2  contents {
3    spacer {
4      width {
5        linear_dimension {
6          value: 100
7        }
8      }
9      height {
10        linear_dimension {
11          value: 10
12        }
13      }
14      modifiers {
15        background {
16          color {
17            argb: 0xFFFF0000
18          }
19          corner {
20            radius {
21              value: 5
22            }
23          }
24        }
25      }
26    }
27  }
28  contents {
29    spacer {
30      width {
31        linear_dimension {
32          value: 100
33        }
34      }
35      height {
36        linear_dimension {
37          value: 20
38        }
39      }
40      modifiers {
41        background {
42          color {
43            argb: 0xFF00FF00
44          }
45        }
46      }
47    }
48  }
49  contents {
50    spacer {
51      width {
52        linear_dimension {
53          value: 100
54        }
55      }
56      height {
57        linear_dimension {
58          value: 40
59        }
60      }
61      modifiers {
62        background {
63          color {
64            argb: 0xFFFFFF00
65          }
66          corner {
67            radius {
68              value: 20
69            }
70          }
71        }
72      }
73    }
74  }
75  contents {
76    spacer {
77      width {
78        linear_dimension {
79          value: 100
80        }
81      }
82      height {
83        linear_dimension {
84          value: 50
85        }
86      }
87      modifiers {
88        background {
89          color {
90            argb: 0xFF00FFFF
91          }
92          corner {
93            radius {
94              value: 25
95            }
96          }
97        }
98      }
99    }
100  }
101  contents {
102    box {
103      modifiers {
104        background {
105          color {
106            argb: 0xFFFFFF00
107          }
108        }
109      }
110      contents {
111        row {
112          contents {
113            text {
114              text {
115                value: "0-length line ->"
116              }
117              font_style {
118                size {
119                  value: 14
120                }
121                weight {
122                  value: FONT_WEIGHT_BOLD
123                }
124                color {
125                  argb: 0xFF000000
126                }
127              }
128            }
129          }
130          contents {
131            # Spacer with no length but a thickness of 40dp.
132            spacer {
133              height {
134                linear_dimension {
135                  value: 40
136                }
137              }
138              modifiers {
139                background {
140                  color {
141                    argb: 0xFF000000
142                  }
143                  corner {
144                    radius {
145                      value: 20
146                    }
147                  }
148                }
149              }
150            }
151          }
152          contents {
153            text {
154              text {
155                value: "<-"
156              }
157              font_style {
158                size {
159                  value: 14
160                }
161                weight {
162                  value: FONT_WEIGHT_BOLD
163                }
164                color {
165                  argb: 0xFF000000
166                }
167              }
168            }
169          }
170        }
171      }
172    }
173  }
174  contents {
175    box {
176      modifiers {
177        background {
178          color {
179            argb: 0xFF00FF00
180          }
181        }
182      }
183      contents {
184        column {
185          horizontal_alignment {
186            value: HORIZONTAL_ALIGN_START
187          }
188          contents {
189            text {
190              text {
191                value: "v 0-thickness line"
192              }
193              font_style {
194                size {
195                  value: 14
196                }
197                weight {
198                  value: FONT_WEIGHT_BOLD
199                }
200                color {
201                  argb: 0xFF000000
202                }
203              }
204            }
205          }
206          contents {
207            spacer {
208              # Spacer with no thickness but a length of 160dp.
209              width {
210                linear_dimension {
211                  value: 160
212                }
213              }
214              modifiers {
215                background {
216                  color {
217                    argb: 0xFF000000
218                  }
219                }
220              }
221            }
222          }
223          contents {
224            text {
225              text {
226                value: "^"
227              }
228              font_style {
229                size {
230                  value: 14
231                }
232                weight {
233                  value: FONT_WEIGHT_BOLD
234                }
235                color {
236                  argb: 0xFF000000
237                }
238              }
239            }
240          }
241        }
242      }
243    }
244  }
245  contents {
246    box {
247      modifiers {
248        background {
249          color {
250            argb: 0xFF0000FF
251          }
252        }
253      }
254      contents {
255        spacer {
256          # Spacer with no dimensions. Neither the spacer nor the blue container
257          # around it should be visible.
258          modifiers {
259            background {
260              color {
261                argb: 0xFF000000
262              }
263            }
264          }
265        }
266      }
267    }
268  }
269}
270