Android 设置操作按钮上的自定义文本
我读到,在API v16之后,除了使用标准选项之外,没有其他选项可以更改操作按钮Android 设置操作按钮上的自定义文本,android,android-edittext,keyboard,ime,Android,Android Edittext,Keyboard,Ime,我读到,在API v16之后,除了使用标准选项之外,没有其他选项可以更改操作按钮 <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:inputType="numberSigned" - (needed) android:imeOptions="actionDone"
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="numberSigned" - (needed)
android:imeOptions="actionDone" - works
android:imeActionLabel="@string/btn_apply" - does nothing
android:imeActionId="@string/btn_apply" - does nothing
android:id="@+id/mEditText" />
因此,是否绝对没有机会使用std输入类型而不使用自定义键盘将操作按钮的文本从“完成”更改为“应用”?
这对我来说毫无意义,真的很烦人。试试
newscoredittext.setImeActionLabel(getString(R.string.xxx),EditorInfo.IME\u ACTION\u GO)代码>如上所述。它没有效果。
newScoreEditText.setImeActionLabel("Apply", EditorInfo.IME_ACTION_DONE);