I am writing an application in which I need to restrict EditText to accept URLs only. How can this be done in Android?
Open the Properties of your EditBox. Property InputType offers you a list of checkboxes, and one of them is textUri
.
It is also working with EditTextPreference although is not shown as property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With