2012-04-18 41 views

回答

0

您可以在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" /> 
+0

感謝布賴恩/帕雷什。只是爲了確認我的問題是針對web而不是針對android應用程序。這個解決方案可以用於網頁嗎? – user1271519 2012-04-18 10:28:46

+1

如果它對你有用,請選擇接受的答案。 – brian 2012-04-18 10:34:13

+0

如果我能解決問題,我會選擇接受的答案。 layout.xml存儲在哪裏? – user1271519 2012-04-18 11:37:06