title: Android Xml File: full phone screen width (to display caller name)
body: <p>I just built an app similar to TrueCaller but I have an issue with displaying the caller name. I tried <code>match_parent</code> &amp; <code>fill_parent</code> &amp; <code>wrap_content</code> methods in XML, but I'm having issues.</p>
  
  <p>I want to set the width to the phone screen width.</p>
  
  <p>How can I achieve this? Here is my layout.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/btn_arsenic"
      android:gravity="center"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:background="@drawable/btn_arsenic"
          android:gravity="center"
          android:orientation="vertical" &gt;
  
          &lt;TextView
              android:id="@+id/tv"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:text="Hello"
              android:textColor="#789546"
              android:textSize="20dp"
              android:textStyle="bold"
              android:typeface="monospace" /&gt;
  
          &lt;TextView
              android:id="@+id/address"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:text="Hello"
              android:textColor="#fff"
              android:textSize="20dp"
              android:textStyle="bold"
              android:typeface="monospace" /&gt;
  
          &lt;TextView
              android:id="@+id/active"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:text="Hello"
              android:textColor="#fff"
              android:textSize="22dp"
              android:textStyle="bold"
              android:typeface="monospace" /&gt;
  
          &lt;TextView
              android:id="@+id/activaa"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:text="Hello"
              android:textColor="#fff"
              android:textSize="22dp"
              android:textStyle="bold"
              android:typeface="monospace" /&gt;
      &lt;/LinearLayout&gt;
      &lt;!-- android:onClick="onPurchaseClick" --&gt;
  
  &lt;/AbsoluteLayout&gt;
  </code></pre>