I have an EditText with the p开发者_C百科roperty:
android:minLines="3"
However, when I start typing, it types in the middle of the EditText.
Is there any way to get this to start typing at the top left of the EditText area?
Add android:gravity="top|left" to the EditText in the layout XML file.
Just insert
android:gravity="top"
into your EditText.
android:gravity="start" would put it to the top left.
This will help you. Try this EditText....
<EditText
android:id="@+id/edt_comment_note"
android:layout_width="fill_parent"
android:layout_height="60dp"
android:background="@drawable/white_box"
android:gravity="top"
android:hint="Note"
android:imeOptions="actionDone"
android:maxLines="3"
android:padding="5dp"
android:textSize="15sp" />
加载中,请稍侯......
精彩评论