如何使用右对齐和提示文本将光标设置为右侧?
可能吗?
我有一个AutoCompleteTextView和一个带文本右对齐的EditText和一个提示文本.
现在,如果其中一个是聚焦的,则光标在提示之前而不是在线的末尾.
所以看起来现在很糟糕……
我也尝试设置光标位置,但当然没有帮助.
android:id="@+id/input_snm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/input_ipAdresse"
android:ems="10"
android:gravity="right"
android:hint="@string/input_snm"
android:imeActionLabel="@string/Button_berechnen"
android:imeOptions="actionDone|flagNoExtractUi"
android:inputType="phone"
android:paddingRight="@dimen/padding_small"
android:textSize="@dimen/fontsize_medium" />
图片:EditText
好吧,我认为这是一个系统错误,不是吗?