Immediately I say, InpuType = "date" does not suit me, because I want to enter the date in the format "dd.mm.yyyy", and in the standard one it is entered through / and does not allow to insert anything extra. I have a TextWatcher connected, which puts dots in the right places, all I need is a numeric keypad (

  • dd.mm.yyyy format is bad. If the application falls into America, then there will enter into a stupor. Since there is just a dot and write, but only a month ahead. I strongly recommend not to invent and use generally accepted standards. And managers who invent this, hit on the head. - KoVadim
  • Yes, managers are tough (I was assured that we are not counting on foreign audiences yet. As a result, I managed inputType = phone, hung up the filter and TextWatcher - tayrinn

3 answers 3

I think fit

android:inputType="numberSigned" 
  • It does not help, TextWatcher stops working and the point is not automatically substituted. - tayrinn

I agree with @KoVadim that you should use the standard ones. In theory, if regional settings are specified, then when entering, it should "pick up" the correct date separator.

If you are still not satisfied, then you can customize the input via InputFilter - EditText.setFilters()

    I have an input field in which only numbers are needed, and I also use TextWatcher to substitute spaces between groups of numbers. Added to EditText

     android:inputType="number" android:digits="0123456789" 

    When you select a field, only the numeric keypad is displayed. And gaps normally lets