Setting up EditText with "url" inputType

android, android-edittext, url

Solution

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.

Problem

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`. I tried to use this: ``` android:inputType="textUri" ``` but it is not working. How do I do it?

Original source