I am facing trouble to set WrapText kind of facility in EditText.
Problem: When i try tp enter data in EditText, it goes beyond the screen width (scrolling horizontally). Instead of it should be appear in next-line.
Want to perform: Actually, i want to implement multiline edittext, initially it should display with single-line as usual, but it will be expanded vertically(not horizontally) as when data is being entered.
Please suggest me what should i do ??
Please have a look at below image:

I have done the below XML coding:
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingTop="10dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:stretchColumns="1">
<TableRow android:id="@+id/TableRow02" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView
android:text="Name:"
android:id="@+id/TextView01"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:textSize="16dip">
</TextView>
<EditText
android:id="@+id/txtViewName"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:inputType="textFilter|textMultiLine|textNoSuggestions"
android:scrollHorizontally="false">
</EditText>
</TableRow>
</TableLayout>
I just change this:
android:layout_width ="0dip"and it is working fine.Multiline edittext but initially it is being displayed one line, it will be expanded vertically(not horizontally) as and when the more and more data are being entered.