Home | History | Annotate | Download | only in articles

Lines Matching full:code

14 especially expensive when you nest several <code>LinearLayout</code>
32 <p>Implementing this layout is straightforward with <code>LinearLayout</code>.
33 The item itself is a horizontal <code>LinearLayout</code> with an
34 <code>ImageView</code> and a vertical <code>LinearLayout</code>, which contains
35 the two <code>TextView</code>. Here's the source code of this layout:</p>
84 the layout with a <code>RelativeLayout</code> remains simple:</p>
137 set the visibility of the second <code>TextView</code> to
138 {@link android.view.View#GONE}. This works perfectly with the <code>LinearLayout</code>
139 implementation but not with the <code>RelativeLayout</code> version:</p>
144 <p>In a <code>RelativeLayout</code>, views are aligned with their parent, with the
145 <code>RelativeLayout</code> itself, or with other views. For instance, we declared that
146 the description is aligned with the bottom of the <code>RelativeLayout</code> and
156 view to the right of a GONE view and set <code>alignWithParentIfMissing</code>
157 to <code>true</code>, <code>RelativeLayout</code> will instead anchor the view
158 to its left edge. In our case, using <code>alignWithParentIfMissing</code> will
159 cause <code>RelativeLayout</code> to align the title's bottom with its own