Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/179.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 设置操作按钮上的自定义文本_Android_Android Edittext_Keyboard_Ime - Fatal编程技术网

Android 设置操作按钮上的自定义文本

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"

我读到,在API v16之后,除了使用标准选项之外,没有其他选项可以更改操作按钮

<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);