Android: Vertical alignment for multi line EditText (Text area)

I want to have 5 lines for the height of the text area. I am using the following code. <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” /> The text area looks fine, but the problem is that the cursor is blinking in the middle of the text field. I want it to blink at … Read more

Is there a way to programmatically scroll a scroll view to a specific edit text?

I have a very long activity with a scrollview. It is a form with various fields that the user must fill in. I have a checkbox half way down my form, and when the user checks it I want to scroll to a specific part of the view. Is there any way to scroll to … Read more

Move to another EditText when Soft Keyboard Next is clicked on Android

When I press the ‘Next’, the focus on the User EditText must be move to the Password. Then, from Password, it must move to the right and so on. Can you help me on how to code it? <LinearLayout android:id=”@+id/LinearLayout01″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:orientation=”horizontal” > <TextView android:id=”@+id/username” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”User Name*” /> <EditText android:id=”@+id/txt_User” android:layout_width=”290dp” android:layout_height=”33dp” … Read more