Declare custom widget (control) tag attribute
<p>I'm creating custom widget that extends <code>android.widget.TextView</code>. How can I declare property that can be set in XML as attribute?</p>

<pre><code>&lt;MyCustomTextView
    android:layout_height="wrap_content"
    android:layout_width="fill_parent"
    . . .
    myCustomAttribute="" /&gt;
</code></pre>
