1box { 2 width { 3 linear_dimension { 4 value: 100 5 } 6 } 7 height { 8 wrapped_dimension {} 9 } 10 11 # Add a background color so it's obvious what the bounds of the text is. 12 modifiers { 13 background { 14 color { 15 argb: 0xFFFFFFFF 16 } 17 } 18 } 19 20 contents { 21 column { 22 contents { 23 text { 24 text { 25 value: "This is a really long string which really should be truncated when it's rendered in a really little container." 26 } 27 font_style { 28 color { 29 argb: 0xFF00FF00 30 } 31 } 32 } 33 } 34 contents { 35 text { 36 text { 37 value: "This is a really long string which really should be truncated when it's rendered in a really little container." 38 } 39 overflow { 40 value: TEXT_OVERFLOW_TRUNCATE 41 } 42 font_style { 43 color { 44 argb: 0xFF000000 45 } 46 } 47 } 48 } 49 contents { 50 text { 51 text { 52 value: "This is a really long string which really should be ellipsized when it's rendered in a really little container." 53 } 54 overflow { 55 value: TEXT_OVERFLOW_ELLIPSIZE_END 56 } 57 font_style { 58 color { 59 argb: 0xFFFF0000 60 } 61 } 62 } 63 } 64 contents { 65 text { 66 text { 67 value: "This is a really long string which really should be truncated when it's rendered in a really little container." 68 } 69 max_lines: { 70 value: 2 71 } 72 overflow { 73 value: TEXT_OVERFLOW_ELLIPSIZE_END 74 } 75 font_style { 76 color { 77 argb: 0xFF0000FF 78 } 79 } 80 } 81 } 82 } 83 } 84} 85