title: Droid: How to centre text within a 9patch's defined borders
body: <p>I have a textview with a 9patch backdrop that has a drawn in dropshadow. The text is not centred in the defined frame but centred to the whole image dimensions including dropshadow. Checking it in the Draw9patch tool in the SDK shows the content space correctly but the text is ignoring this.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/toast_layout_root"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_gravity="center"
      android:gravity="center"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/text"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@drawable/toast_frame2"
          android:gravity="center"
          android:padding="10dp"
              android:text="Toast text"
          android:textColor="#444444"
          android:textSize="10sp" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/DGM25.png" alt="enter image description here"></p>
  
  <p>How do I get the textview to use the 9patch definitions?</p>