I want to make a panel keyboard for the IP address input field. There must be a period and a colon on the keyboard. I did not find a variant of the standard keyboard. I tried to change imeActionLabel to numberDecimal , but the system keyboard refuses to put the specified string.

In the end, I came to write a panel that would be pushed from below, as if it were a keyboard. However, my knowledge of Android is not enough for an independent solution of this task.

I would be very grateful for examples of the implementation of such panels, as well as tips. First of all, the implementation of the appearance of the panel on the screen - the contents of the panel, I somehow will set myself.

  • You can create your own keyboard (custom keyboard). I see examples of creation here and here . These are only the first links on request to Google "android custom keyboard", so it is worth the rest to see. - Regent

2 answers 2

Well, if you need a sliding panel then this is a look at the BottomNavigationView. To cut your keyboard is not an option, because its user will have to install by default. In general, it is better to make a mask on the field in which you need to enter the IP address

  • The mask will be made, the essence is different: it is inconvenient to enter the ip-address, you have to switch to characters, go to numbers, etc. - user7408083
  • one
    If you have a mask, then why write the colon yourself. Let their mask and add - pavel163
  • Apparently, it is supposed not a full keyboard, but just a panel with numbers and a colon, not instead, but simultaneously with the main keyboard, but a ready-made mask, where only numbers are much more preferable. - pavlofff
  • How are you going to track where 3 characters should be, and where are 2 or 1? The keyboard does not know how to read thoughts, the mask too. We need a simple and obvious option, the keyboard on which only the numbers, period and colon. - user7408083
  • can write 0 in front. And then everywhere there will be three signs. And if this does not suit you, then write not a custom keyboard but just a set of buttons on the bottomnavigationview - pavel163

Pay attention to this library, easy to use and provide the necessary functionality. https://android-arsenal.com/details/1/4642