Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/200.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
如何将edittext输入类型设置为android中默认键盘以外的特定语言_Android_Keyboard_Android Edittext - Fatal编程技术网

如何将edittext输入类型设置为android中默认键盘以外的特定语言

如何将edittext输入类型设置为android中默认键盘以外的特定语言,android,keyboard,android-edittext,Android,Keyboard,Android Edittext,如果我在键盘设置中将安卓键盘设置为默认为英语,并启用阿拉伯语键盘。我在我的应用程序中点击了EditText,然后我得到了英语键盘。但在我的应用程序中,有一个输入阿拉伯语的edittext。我需要显示阿拉伯语键盘。如何做到这一点?如何为任何特定的EditText设置默认键盘类型。您可以通过以下方式进行设置: <EditText android:id="@+id/editText1" android:layout_width="match_parent" android

如果我在键盘设置中将安卓键盘设置为默认为英语,并启用阿拉伯语键盘。我在我的应用程序中点击了EditText,然后我得到了英语键盘。但在我的应用程序中,有一个输入阿拉伯语的edittext。我需要显示阿拉伯语键盘。如何做到这一点?如何为任何特定的EditText设置默认键盘类型。

您可以通过以下方式进行设置:

<EditText
    android:id="@+id/editText1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:ems="10" 
    android:inputMethod="Here You specify fully-qualified class name of your Inputmethod">

希望这将帮助您…

我知道在哪里指定,但我的问题是如何指定语言键盘????
If set, specifies that this TextView should use the specified input 
method (specified by fully-qualified class name). * Deprecated:  Use inputType instead. [string]