I’m looking for a way to “customize” the inputType of a EditText. The user should enter a date which has the format dd.mm.yyyy (and yes, I don’t want to use a date picker). Setting the inputType to numberDecimal allows entering only one point, but I would like to have only the numeric keyboard, not the whole one. Is there an easy way reaching that without writing a custom keyboard?
So basically I just want to use [1,2,3,4,5,6,7,8,9,0,.]
Whenever you limit the input to a unique set of characters you can use the digits attribute:
Every characters you specify can be used one or more times, you can even include letters and other symbols.