当我在Android设备中启动我的应用程序(4.0.4)
我没有在EditText
看到阿拉伯语暗示
activity_main.xml中
<EditText
android:id="@+id/gradeInput"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="1dp"
android:layout_marginLeft="1dp"
android:layout_marginTop="208dp"
android:layout_marginEnd="1dp"
android:layout_marginRight="1dp"
android:layout_marginBottom="478dp"
android:autofillHints=""
android:ems="10"
android:hint="@string/inputHint"
android:inputType="numberDecimal"
android:maxLength="5"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:targetApi="o" />
strings.xml中
<string name="inputHint">تلميح</string>
我在这个question读过这些答案,但没有任何帮助我:(
请帮我...
我找到了解决方案!
要解决这个问题,你需要删除inputType
属性,它会正常工作。
或者你可以这样做:
<EditText
...
android:inputType="none" />
但是你不能改变inputType
属性。
因为如果您更改了它,如果提示是阿拉伯语,则提示将为空