title: What is the most efficient way to achieve such layout
body: <p>I have to achieve the following layout in one of my android applications:</p>
  
  <p><img src="https://i.stack.imgur.com/H7j9E.jpg" alt="Layout to build"></p>
  
  <p>Edit:</p>
  
  <p>I also need the selection of one of the elements to be displayed in a similar way as that:</p>
  
  <p><img src="https://i.stack.imgur.com/2pSAu.jpg" alt="enter image description here"></p>
  
  <p>So each of the 3 elements have to take 1/3 of the Horizontal space to make the selection drawable big enough.</p>
  
  <p>/Edit</p>
  
  <p>I can't find most efficient way to make it.</p>
  
  <p>I've first tried:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/forums_navbar"
      android:layout_width="fill_parent" android:layout_height="@dimen/forums_navbar_height"
      android:background="@color/white"&gt;
      &lt;TextView android:id="@+id/forums_navbar_TextView_debut"
          android:layout_width="fill_parent" android:layout_height="fill_parent"
          android:layout_weight="1"
          android:gravity="center"
          android:text="@string/forums_nav_debut"
          android:textStyle="bold"
          android:textColor="@color/forum_nav_blue"
          android:textSize="15sp"
          android:drawablePadding="4dip"
          android:drawableLeft="@drawable/nav_fast_backward"&gt;
      &lt;/TextView&gt;
      &lt;TextView android:id="@+id/forums_navbar_TextView_precedent"
          android:layout_width="fill_parent" android:layout_height="fill_parent"
          android:layout_weight="1"
          android:gravity="center"
          android:text="@string/forums_nav_precedent"
          android:textStyle="bold"
          android:textColor="@color/forum_nav_blue"
          android:textSize="15sp"
          android:drawablePadding="4dip"
          android:drawableLeft="@drawable/nav_backward"&gt;
      &lt;/TextView&gt;
      &lt;TextView android:id="@+id/forums_navbar_TextView_suivant"
          android:layout_width="fill_parent" android:layout_height="fill_parent"
          android:layout_weight="1"
          android:gravity="center"
          android:text="@string/forums_nav_suivant"
          android:textStyle="bold"
          android:textColor="@color/forum_nav_blue"
          android:textSize="15sp"
          android:drawablePadding="4dip"
          android:drawableRight="@drawable/nav_fast_forward"&gt;
      &lt;/TextView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The result is not exactly what expected:</p>
  
  <p><img src="https://i.stack.imgur.com/PeAA5.jpg" alt="Bad one"></p>
  
  <p>I've changed the layout to have it work:</p>
  
  <pre><code>    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/forums_navbar"
      android:layout_width="fill_parent" android:layout_height="@dimen/forums_topics_navbar_height"
      android:background="@color/white"&gt;
      &lt;RelativeLayout 
          android:layout_width="fill_parent" android:layout_height="fill_parent"
          android:layout_weight="1"&gt;
          &lt;TextView android:id="@+id/forums_navbar_TextView_debut"
              android:layout_width="wrap_content" android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:text="@string/forums_nav_debut"
              android:textStyle="bold"
              android:textColor="@color/forum_nav_blue"
              android:textSize="15sp"
              android:drawablePadding="4dip"
              android:drawableLeft="@drawable/nav_fast_backward"&gt;
          &lt;/TextView&gt;
      &lt;/RelativeLayout&gt;
      &lt;RelativeLayout 
          android:layout_width="fill_parent" android:layout_height="fill_parent"
          android:layout_weight="1"&gt;
          &lt;TextView android:id="@+id/forums_navbar_TextView_precedent"
              android:layout_width="wrap_content" android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:text="@string/forums_nav_precedent"
              android:textStyle="bold"
              android:textColor="@color/forum_nav_blue"
              android:textSize="15sp"
              android:drawablePadding="4dip"
              android:drawableLeft="@drawable/nav_backward"&gt;
          &lt;/TextView&gt;
      &lt;/RelativeLayout&gt;
      &lt;RelativeLayout 
          android:layout_width="fill_parent" android:layout_height="fill_parent"
          android:layout_weight="1"&gt;
          &lt;TextView android:id="@+id/forums_navbar_TextView_suivant"
              android:layout_width="wrap_content" android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:text="@string/forums_nav_suivant"
              android:textStyle="bold"
              android:textColor="@color/forum_nav_blue"
              android:textSize="15sp"
              android:drawablePadding="4dip"
              android:drawableRight="@drawable/nav_fast_forward"&gt;
          &lt;/TextView&gt;
      &lt;/RelativeLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The result:</p>
  
  <p><img src="https://i.stack.imgur.com/ehKof.jpg" alt="good"></p>
  
  <p>It works, but it's just not efficient at all. Is there a better way?</p>