你可以设置 的 android:inputType 强> layout.xml中的属性。 如下:
android:inputType
<EditText android:id="@+id/et" android:layout_width="match_parent" android:layout_height="fill_parent" android:layout_weight="1" android:inputType="textEmailAddress" />
我们可以检查一下 keyboard support with input type 如果要使用webview启用相应的键盘,请使用以下链接。
keyboard support with input type
http://www.quirksmode.org/html5/inputs_mobile.html