Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Set alphanumeric keyboard to show numeric first in EditText

Tags:

android

I'm implementing an Android App and I need a tip. My EditText, usually, is just numbers, but sometimes numbers and letters.

This is the keyboard that I need as "default", when the EditText is focused:

numeric keyboard

If I put android:inputType="phone" or android:inputType="number", the result isn't what I need:

phone layout keyboard

I need numbers and letters. So, is it possible to do? I already tried EVERY inputType. I try to "mix" some inputTypes, like, number | text, but nothing changes.

like image 700
Beneti Avatar asked Dec 03 '12 19:12

Beneti


1 Answers

try this

android:inputType="textVisiblePassword"

source

like image 55
Zainal Fahrudin Avatar answered Sep 19 '22 03:09

Zainal Fahrudin