I have an edit text on my xml layout to allow the user to enter his username,like this:
<EditText
android:id="@+id/etUsername"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType=""
/>
which type of inputType should i use to make the user enter his username, the username contains just letters small letter and capital letter and numbers
May I suggest
textVisiblePassword|textNoSuggestionsit gives you the normal keyboard with the option to display numbers but gets rid of the Android suggestions (they’re pretty useless when typing in a username).EDIT:
As pointed out by Hailwood, some users may like the added benefit of the suggestions provided by the Android keyboard. Upon reflection on the matter, perhaps a standard
textmight be more suited for this situation.It’s really a UX matter, you’ll have to make a choice here.