我正在尝试制作一个 EditText
,这样当我单击它时,会出现一个包含“.com”的键盘,因为要在 EditText
中输入一个 URL >.
我试着用这个:
android:inputType="textUri"
但它不起作用。我该怎么做?
最佳答案
试试这个
<EditText
android:id="@+id/edt"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:inputType="textWebEmailAddress"
/>
android:inputType="textWebEmailAddress" 为此使用此属性。
关于android - 使用 "url"inputType 设置 EditText,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21954503/