在我的代码中,我有 EdiText,它的代码是:
<EditText
android:layout_height="150dp"
android:id="@+id/profiledescription"
android:imeOptions="actionDone|flagNoExtractUi"
android:textSize="16sp"
android:paddingLeft="20dp"
android:layout_width="fill_parent"
android:enabled="false"
android:layout_marginRight="20dp"></EditText>
但问题是光标是从中间开始而不是通常的第一个位置:
最佳答案
您可能需要为布局中相应的 XML 元素设置 android:gravity="top"
。
关于android - Android的edittext起点问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6944798/