title: Alignment of three buttons in Table Row Android
body: <p>I have three buttons in my Actvity inside Linear Layout.
  Here i wish all buttons should occupy whole tablelayour equally.
  So i have coded as below.</p>
  
  <pre><code>&lt;Linearlayout&gt;
   ......
   &lt;TableLayout
          android:id="@+id/tableLayout2"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_weight="0"
          android:stretchColumns="*"&gt;
  
          &lt;TableRow
              android:id="@+id/tableRow5"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"&gt;
              &lt;Button
                  android:id="@+id/registerTwitter"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Register Twitter" 
                  android:gravity="left"/&gt;
  
              &lt;Button
                  android:id="@+id/registerFB"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Register FaceBook" 
                  android:gravity="center"/&gt;
  
              &lt;Button
                  android:id="@+id/clearCredentials"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Clear Credentials"
                  android:layout_gravity="right" /&gt;
  
          &lt;/TableRow&gt;
      &lt;/TableLayout&gt;
    &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>But here when i gave code as above i got three buttons occupying whole space.</p>
  
  <p>but alignment are not proper. They are like dancing in air.... </p>
  
  <p>where did i made mistake...</p>
  
  <p><img src="https://i.stack.imgur.com/S7Mu8.jpg" alt="This is the part of output i got"></p>
  
  <p><strong>Also note above Last button is not visible fully its half hidden.....</strong></p>
  
  <p>I'm really weak in UI design can anyone suggest in that ....</p>