title: Setting height of textview adds padding at top
body: <p>I am having a bit of issue while setting a layout , the problem is that the text for user's bio can vary but making it's textview height which is tvbio in below code wrap_content is adding padding at top , so effectively disturbing all the layout , here is my xml </p>
  
  <pre><code>&lt;LinearLayout
              android:id="@+id/userInfoHeadrLL"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal"
              android:paddingLeft="5dip"
              android:paddingRight="10dip"
              android:paddingTop="0dip" &gt;
  
              &lt;RelativeLayout
                  android:id="@+id/userInfoRL"
                  android:layout_width="wrap_content"
                  android:layout_height="fill_parent"
                  android:layout_marginTop="-50dip"
                  android:orientation="vertical" &gt;
  
                  &lt;ImageView
                      android:id="@+id/IVProfilePicture"
                      android:layout_width="120dp"
                      android:layout_height="120dip"
                      android:layout_alignParentStart="true"
                      android:layout_centerVertical="true"
                      android:background="@null"
                      android:paddingRight="6dip"
                      android:src="@drawable/anonymous_user" /&gt;
  
                  &lt;TextView
                      android:id="@+id/TVAmountEarned"
                      style="@style/small_body_text"
                      android:layout_width="wrap_content"
                      android:layout_height="40dip"
                      android:layout_below="@+id/IVProfilePicture"
                      android:layout_marginLeft="42dip"
                      android:gravity="center"
                      android:text="$0.00"
                      android:textColor="@color/grey" /&gt;
  
                  &lt;TextView
                      android:id="@+id/TVHolder"
                      style="@style/small_body_text"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_above="@+id/TVFullName"
                      android:layout_toRightOf="@+id/IVProfilePicture"
                      android:paddingBottom="-5dip"
                      android:text="samjaved"
                      android:textColor="@color/blue" /&gt;
  
                  &lt;TextView
                      android:id="@+id/TVFullName"
                      style="@style/small_body_text"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                      android:layout_above="@+id/simpleViewAboveTable"
                      android:layout_toRightOf="@+id/IVProfilePicture"
                      android:paddingBottom="0dip"
                      android:text="sami"
                      android:textColor="@color/grey" /&gt;
  
                  &lt;View
                      android:id="@+id/simpleViewAboveTable"
                      android:layout_width="fill_parent"
                      android:layout_height="1dp"
                      android:layout_above="@+id/tableUserInfoFollow"
                      android:layout_toRightOf="@+id/IVProfilePicture"
                      android:background="@color/llgrey" /&gt;
  
                  &lt;TableLayout
                      android:id="@+id/tableUserInfoFollow"
                      android:layout_width="fill_parent"
                      android:layout_height="45dip"
                      android:layout_centerVertical="true"
                      android:layout_marginBottom="2dip"
                      android:layout_toRightOf="@+id/IVProfilePicture"
                      android:stretchColumns="*" &gt;
  
                      &lt;TableRow
                          android:layout_width="wrap_content"
                          android:layout_height="45dip" &gt;
  
                          &lt;LinearLayout
                              android:layout_width="50dp"
                              android:layout_height="wrap_content"
                              android:layout_alignParentLeft="true"
                              android:layout_marginTop="8dip"
                              android:gravity="center"
                              android:orientation="vertical" &gt;
  
                              &lt;TextView
                                  android:id="@+id/textPostedCount"
                                  style="@style/small_body_text"
                                  android:layout_width="wrap_content"
                                  android:layout_height="wrap_content"
                                  android:text="0" /&gt;
  
                              &lt;TextView
                                  android:id="@+id/tvPosted"
                                  style="@style/small_body_text"
                                  android:layout_width="wrap_content"
                                  android:layout_height="wrap_content"
                                  android:layout_marginTop="-8dip"
                                  android:text="Posted" /&gt;
                          &lt;/LinearLayout&gt;
  
                          &lt;LinearLayout
                              android:layout_width="50dp"
                              android:layout_height="wrap_content"
                              android:layout_alignParentLeft="true"
                              android:layout_marginTop="8dip"
                              android:gravity="center"
                              android:orientation="vertical" &gt;
  
                              &lt;TextView
                                  android:id="@+id/textFollowersCount"
                                  style="@style/small_body_text"
                                  android:layout_width="wrap_content"
                                  android:layout_height="wrap_content"
                                  android:text="0" /&gt;
  
                              &lt;TextView
                                  android:id="@+id/tvFollower"
                                  style="@style/small_body_text"
                                  android:layout_width="wrap_content"
                                  android:layout_height="wrap_content"
                                  android:layout_marginTop="-8dip"
                                  android:text="Followers" /&gt;
                          &lt;/LinearLayout&gt;
  
                          &lt;LinearLayout
                              android:layout_width="50dp"
                              android:layout_height="wrap_content"
                              android:layout_alignParentLeft="true"
                              android:layout_marginTop="8dip"
                              android:gravity="center"
                              android:orientation="vertical" &gt;
  
                              &lt;TextView
                                  android:id="@+id/textFollowedCount"
                                  style="@style/small_body_text"
                                  android:layout_width="wrap_content"
                                  android:layout_height="wrap_content"
                                  android:gravity="center_vertical"
                                  android:text="0" /&gt;
  
                              &lt;TextView
                                  android:id="@+id/tvFollowed"
                                  style="@style/small_body_text"
                                  android:layout_width="wrap_content"
                                  android:layout_height="wrap_content"
                                  android:layout_marginTop="-8dip"
                                  android:gravity="center_vertical"
                                  android:text="Followed" /&gt;
                          &lt;/LinearLayout&gt;
                      &lt;/TableRow&gt;
                  &lt;/TableLayout&gt;
  
                  &lt;View
                      android:id="@+id/simpleViewBelowLayout"
                      android:layout_width="fill_parent"
                      android:layout_height="1dp"
                      android:layout_below="@+id/tableUserInfoFollow"
                      android:layout_toRightOf="@+id/IVProfilePicture"
                      android:background="@color/llgrey" /&gt;
  
                  &lt;TextView
                      android:id="@+id/TVbio"
                      style="@style/small_body_text"
                      android:layout_width="fill_parent"
                      android:layout_height="200dip"
                      android:layout_below="@+id/simpleViewBelowLayout"
                      android:layout_marginTop="2dp"
                      android:layout_toRightOf="@+id/IVProfilePicture"
                      android:paddingBottom="0dip"
                      android:text="bio will go here sahsakjhdjahdjhdjhdjsahdjhahahdjhdsjhdajhdsjhdskjhakjhdskjashjkasjk" /&gt;
              &lt;/RelativeLayout&gt;
          &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>To solve this , i am currently checking the bio's text in code and setting height and margins accordingly , but that doesnt seem like the best way as it is showing different results on different screens, any help in this regard will be appreciated.  </p>
  
  <p>EDIT <a href="https://i.stack.imgur.com/lsa44.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lsa44.png" alt=""></a></p>
  
  <p><a href="https://i.stack.imgur.com/Zm1gF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zm1gF.png" alt="And this is how it should show when there is text at bottom"></a><a href="https://i.stack.imgur.com/E0o2D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E0o2D.png" alt=""></a>
  1st is the desired behaviour for no text </p>
  
  <p>2nd is is how it should show when there is text at bottom</p>
  
  <p>3rd is  is how it is showing currently when there is no text , note the extra space below $0.00</p>
  
  <p>How to get rid of that extra space?</p>
  
  <p>If to achieve that i reduce the height of textview , problem occur for larger texts as they start getting cropped.</p>