I am trying to make an EditText
such that when i click it a key board containing ".com" appears because a url is to be intered into the EditText
.
I tried to use this: android:inputType="textUri"
but it is not working. How do i do it?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
try this one
<EditText
android:id="@+id/edt"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:inputType="textWebEmailAddress"
/>
android:inputType="textWebEmailAddress" use this property for that.
回答2:
You can use inputType as textWebEmailAddress
or textEmailAddress
. Specs say it is device dependent but honestly I did not find any difference. Purpose of using this is you can use the @ and .com keys in the keypad. I tried both on samsung Galaxy S5 and keypad is the same.