Home | History | Annotate | Download | only in custom-views

Lines Matching full:attributes

17             <li><a href="#customattr">Define Custom Attributes</a></li>
18 <li><a href="#applyattr">Apply Custom Attributes to a View</a></li>
45 <li>Provide custom styleable attributes that work with Android XML layouts</li>
77 <h2 id="customattr">Define Custom Attributes</h2>
81 appearance and behavior with element attributes. Well-written custom views can also be added and
86 <li>Define custom attributes for your view in a {@code
90 <li>Specify values for the attributes in your XML layout</li>
95 <p>This section discusses how to define custom attributes and specify their values.
99 <p>To define custom attributes, add {@code
118 <p>This code declares two custom attributes, {@code showText} and {@code labelPosition}, that belong
126 <p>Once you define the custom attributes, you can use them in layout XML files just like built-in
127 attributes. The only
128 difference is that your custom attributes belong to a different namespace. Instead of belonging
132 attributes defined for
157 {@code PieChart} class has an inner class called {@code PieView}. To use the custom attributes from this class, you would
160 <h2 id="applyattr">Apply Custom Attributes</h2>
162 <p>When a view is created from an XML layout, all of the attributes in the XML tag are read
187 the attributes from the {@link android.content.res.TypedArray TypedArray}. Here's how
189 reads its attributes:</p>
214 <p>Attributes are a powerful way of controlling the behavior and appearance of views, but