Lines Matching full:relativelayout
76 android:text="Simple application that shows how to use RelativeLayout" />
84 using a single {@link android.widget.RelativeLayout}, thus saving one view, and
86 the layout with a <code>RelativeLayout</code> remains simple:</p>
88 <pre class="prettyprint"><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
118 android:text="Simple application that shows how to use RelativeLayout" />
133 </RelativeLayout></pre>
141 implementation but not with the <code>RelativeLayout</code> version:</p>
143 <div style="text-align: center;"><img src="images/relativelayout_2.png" alt="RelativeLayout and description GONE"></div>
144 <div style="text-align: center;"><img src="images/relativelayout_wire_2.png" alt="RelativeLayout and description GONE"></div>
146 <p>In a <code>RelativeLayout</code>, views are aligned with their parent, with the
147 <code>RelativeLayout</code> itself, or with other views. For instance, we declared that
148 the description is aligned with the bottom of the <code>RelativeLayout</code> and
150 parent's top. With the description GONE, RelativeLayout doesn't know
156 <p>This boolean parameter simply tells RelativeLayout to use its own edges as
159 to <code>true</code>, <code>RelativeLayout</code> will instead anchor the view
161 cause <code>RelativeLayout</code> to align the title's bottom with its own
164 <div style="text-align: center;"><img src="images/relativelayout_3.png" alt="RelativeLayout, description GONE and alignWithParentIfMissing"></div>
165 <div style="text-align: center;"><img src="images/relativelayout_wire_3.png" alt="RelativeLayout, description GONE and alignWithParentIfMissing"></div>
174 <div style="text-align: center;"><img src="images/layouts_comparison_small.png" alt="LinearLayout vs RelativeLayout"></div>