Text overlapping in Android text view
<p>I am facing through a strange behavior of text view. When the text view has multiple line the lines are overlapping on each other. I tried to solve it but dint get any clue yet. Can you please help me out.</p>

<p>here is XML:</p>

<p>
</p>

<pre><code> &lt;LinearLayout
    android:id="@+id/linearLayout2"
    android:layout_width="fill_parent"
    android:layout_height="85dip"
    android:gravity="center_vertical"
    android:orientation="horizontal" &gt;

    &lt;FrameLayout
        android:id="@+id/frameLayout1"
        android:layout_width="fill_parent"
        android:layout_height="match_parent" android:paddingRight="50dip"&gt;

        &lt;LinearLayout
            android:id="@+id/linearLayout3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:layout_gravity="right|center_vertical" android:gravity="center_vertical"&gt;

            &lt;TextView
                android:id="@+id/navigationHeaderTxtView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#cccccc"
                android:visibility="gone" android:layout_gravity="center_vertical"/&gt;

            &lt;TextView
                android:id="@+id/textView1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textAppearance="?android:attr/textAppearanceMedium" android:layout_gravity="left|center_vertical" android:layout_marginLeft="5dip" android:textColor="#ebebee" android:textStyle="bold"/&gt;



        &lt;/LinearLayout&gt;

    &lt;/FrameLayout&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>
    </p>

<pre><code>    &lt;Button
        android:id="@+id/btnBack"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="10dip"
        android:background="@drawable/btn_back" /&gt;

    &lt;Button
        android:id="@+id/btnHome"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="10dip"
        android:background="@drawable/btn_home" /&gt;

&lt;/LinearLayout&gt;--&gt;

&lt;LinearLayout
    android:id="@+id/linearLayout1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" android:layout_gravity="top" android:layout_marginTop="20dip" android:gravity="center"&gt;

    &lt;ImageView
        android:id="@+id/arrow_up"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/arrow_up" android:visibility="visible"/&gt;

&lt;/LinearLayout&gt;

&lt;FrameLayout
    android:id="@+id/frameLayout3"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" android:paddingLeft="80dip" android:paddingRight="80dip"&gt;

    &lt;GridView
        android:id="@+id/gridView1"
        android:layout_width="match_parent"
        android:layout_height="250dip"
        android:cacheColorHint="#00000000"
        android:horizontalSpacing="10dip"
        android:listSelector="@drawable/list_selector"
        android:numColumns="5"
        android:padding="10dip"
        android:verticalSpacing="10dip" &gt;
    &lt;/GridView&gt;

&lt;/FrameLayout&gt;

    &lt;LinearLayout
    android:id="@+id/linearLayout1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" android:layout_gravity="top" android:layout_marginTop="20dip" android:gravity="center"&gt;

    &lt;ImageView
        android:id="@+id/arrow_down"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/arrow_down" android:visibility="visible"/&gt;

&lt;/LinearLayout&gt;


&lt;LinearLayout
    android:id="@+id/frameLayout2"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;TextView
        android:id="@+id/textTitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:textColor="@color/title_color"
        android:textSize="25dip" android:layout_gravity="center_horizontal"/&gt;

     &lt;TextView
    android:id="@+id/textDescription"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Medium Text"
    android:textAppearance="?android:attr/textAppearanceMedium" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p></p>

<p>I have attached a screen shot regarding the problem.<img src="http://i.stack.imgur.com/QNoPd.jpg" alt="enter image description here"></p>

<p>Thanks &amp; Regards </p>
