title: How to use standard attribute android:text in my custom view?
body: <p>I wrote a <strong>custom view</strong> that extends <code>RelativeLayout</code>. My view has text, so I want to use the standard <code>android:text</code> <strong>without</strong> the need to specify a <code>&lt;declare-styleable&gt;</code> and <strong>without</strong> using a custom namespace <code>xmlns:xxx</code> every time I use my custom view.</p>
  
  <p>this is the xml where I use my custom view:</p>
  
  <pre><code>&lt;my.app.StatusBar
      android:id="@+id/statusBar"
      android:text="this is the title"/&gt;
  </code></pre>
  
  <p>How can I get the attribute value? I think I can get the android:text attribute with </p>
  
  <pre><code>TypedArray a = context.obtainStyledAttributes(attrs,  ???);
  </code></pre>
  
  <p>but what is <code>???</code> in this case (without a styleable in attr.xml)?</p>