本文介紹了使用“url"設置 EditText輸入類型的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
我正在嘗試制作一個 EditText
,這樣當我點擊它時,會出現一個包含.com"的鍵盤,因為要在 EditText
.
I am trying to make an EditText
such that, when I click it, a keyboard containing ".com" appears, because a URL is to be entered into the EditText
.
我試過用這個:
android:inputType="textUri"
但它不起作用.我該怎么做?
but it is not working. How do I do it?
推薦答案
試試這個
<EditText
android:id="@+id/edt"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:inputType="textWebEmailAddress"
/>
android:inputType="textWebEmailAddress"為此使用此屬性.
android:inputType="textWebEmailAddress" use this property for that.
這篇關于使用“url"設置 EditText輸入類型的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!