EditText Cursor(游标)放置问题

一:默认情况,当EditText高度比较大的时候,Cursor会放在中间位置,如下:
这里写图片描述

二:要想把Cursor放在编辑的横线的左边,如下设置
android:gravity=”bottom|left”

<EditText
        android:id="@+id/edt"
        android:gravity="bottom|left"
        android:layout_weight="1"
        android:layout_width="match_parent"
        android:layout_height="0dp"/>

效果图:
这里写图片描述

猜你喜欢

转载自blog.csdn.net/zzldm/article/details/54574723