B4i Library [customview] Numpad

Erel

Administrator
Staff member
Licensed User
upload_2016-3-2_17-14-39.png

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.
 

Attachments

Erel

Administrator
Staff member
Licensed User
You will need to access slidingPanel child views and change their sizes.
 

Erel

Administrator
Staff member
Licensed User
The problem is that the text field needs to be focused for the cursor to appear. The standard keyboard will appear if the text field is focused.
 

jai

Member
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?
 

Erel

Administrator
Staff member
Licensed User
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
The border of the selected field becomes thicker. You can make it more prominent.
 

jai

Member
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.
 
Top