views:

2433

answers:

3

I want to have 5 line in height text area following code i am using.

<EditText android:layout_width="fill_parent"
            android:layout_height="wrap_content" android:gravity="center"
            android:singleLine="false" android:lines="5"
            android:layout_marginLeft="10dip" android:layout_marginRight="10dip"
            />

text area looks fine but problem is cursor is blinking in the middle of the text field i want it to blink at first line first char of the text field.

+7  A: 

Use android:gravity="top"

CommonsWare
A: 

me to having the same problem i want to multiple line text in the edittext box

ashish
it is fixed look at the accepted answer
Faisal khan
A: 

yup i got the solution we just need to to set gravity to top.

ashish