Setting up EditText with "url" inputType
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.
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.