title: (Vibrating TextView) Configure attributes for custom views
body: <p>I just created class <code>VibratingTextView</code>. I intend to create a whole library of widgets so I want to do it the right way.</p>
  
  <p>The xml for this View:</p>
  
  <pre><code>&lt;sherif.android.textview.VibratingTextView  
      android:id="@+id/textView2"  
      android:layout_width="wrap_content"  
      android:textAppearance="?android:attr/textAppearanceLarge"  
      android:layout_height="wrap_content"  
      android:orientation="horizontal"  
      android:text="outToRight" &gt;  
  &lt;/sherif.android.textview.VibratingTextView&gt; 
  </code></pre>
  
  <p>Notice it has <code>android:orientation</code> and <code>android:text</code>. It accepts the attributes of a <code>TextView</code> and of a <code>LinearLayout</code>. The class itself <code>extends LinearLayout</code>.</p>
  
  <p>My problem is in the xml editor of eclipse. When the user types <code>android:</code>, eclipse's intellisense gives the user the options available in this namespace.</p>
  
  <p>In my case, it is giving the attributes of <code>LinearLayout</code> so, for example, <code>Text</code> and <code>TextSize</code> do not appear.</p>
  
  <p>Is there a way to make them appear (using the <code>android</code> namespace)?</p>
  
  <p>If not, should I create my own namespace with attributes that I define? or is there a way to import the android's attributes and make them in sherif's attributes? </p>
  
  <p>Keep in mind that I am creating a TextView in the constructor of my class using the attributes passed. It is working fine and all the attributes for the TextView are being set correctly.</p>
  
  <p>Since I will create many other widgets, I might need my own namespace but what is the best practice? For example, I want to create <code>alwaysVibrate</code> attribute. It will be something like <code>sherif:alwaysVibrate="true"</code>. I want my library to be includable and eclipse to show the attributes of my namespace: I use the usual way using <code>attr.xml</code>?</p>