B4i Library [customview] Numpad


A custom view made of text field (FloatLabeledTextField) and a small numpad that appears when the user clicks on the field.

Similar to the B4A numpad customview: https://www.b4x.com/android/forum/threads/customview-numpad.64191/#content

It depends on iUI8 (v1.20+) library. You need to add #MinVersion: 8 to your project.
The customview is made of the Numpad class and Numpad.bil layout file.


  • Numpad.zip
    5.7 KB · Views: 242


Licensed User
I tried to put a transparent Numpad view over a TextField and request focus on the TextField when Numpad view is clicked. The Numpad keypad shows up fine but no cursor shows up in the TextField.

All I need is a numeric keypad with numbers and a minus (-) and Back keys. None of the standard numeric and number keypads provides this key. The Customview Numpad seemed ideal after changing the decimal key to a minus key. But without a cursor it is impractical. A blinking cursor is expected by the user to relate an open keypad with a view especially when there are multiple views on the screen.

Can you suggest any other approach or alternative?


Licensed User
The border of the selected field becomes thicker. You can make it more prominent.
I have an established Xcode app with lots of users which includes a custom numeric pad with just the needed keys and a cursor. I am working on replacing this app with a B4i version. It won’t fly if the keypad is not as good as in the Xcode version.

Initial test reviews of the Numpad versions with darker border, light color background, font colors etc. have not been positive in comparison. Still exploring ways to replicate it in B4i.