34,333
edits
Changes
→Working with Barriers
* '''Wrap Content''' – The size of the widget is dictated by the content it contains (i.e. text or graphics).
== Working Working with Barriers ==
Rather like guidelines, barriers are virtual views that can be used to constrain views within a layout. As with guidelines, a barrier can be vertical or horizontal and one or more views may be constrained to it (to avoid confusion, these will be referred to as constrained views). Unlike guidelines where the guideline remains at a fixed position within the layout, however, the position of a barrier is defined by a set of so called reference views. Barriers were introduced to address an issue that occurs with some frequency involving overlapping views. Consider, for example, the layout illustrated in Figure 17-12 below:
[[Image:as3.0_barrier_dialogram10_barrier_diagram1.png]]
[[Image:as3.0_barrier_dialogram20_barrier_diagram2.png]]
[[Image:as3.0_barrier_dialogram30_barrier_diagram3.png]]