Search code examples
androideclipseandroid-listviewandroid-xmlandroid-scrollview

how to align the text that a textview shows to the left ? in android app in Eclipse


i have a textview inside of a scrollview...in a linearlayout : when i open the avd to test the app the firs line of the text I'm getting is aligned to the right, and the rest of the paragraph is normal(starting from left).thats with every single paragraph.

this is what i have :

<LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="360dp"
android:addStatesFromChildren="true" >

    <TextView
        android:id="@+id/description_label"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:paddingBottom="60dip"
        android:paddingLeft="5dp"
        android:paddingRight="5dp"
        android:textColor="#000000" />

                  <!-- Description Label -->

</ScrollView>




</LinearLayout>

Solution

  • it wasnt about the code ..it was about the way i write the text on my TextView on the xml file(inside of the description tag) .. it had to write the text all the way to the left( to the first column).