Adeel Ahmad
Adeel Ahmad

Reputation: 305

how did I get onscreen keypad support in codenameone

I want onscreen keypad support to type numbers only (numeric keypad) in TextField. So far I get the default keypad with both alphabets and numbers. Is there any method available to show onscreen numeric keypad instead of default one ?

Upvotes: 0

Views: 54

Answers (1)

Shai Almog
Shai Almog

Reputation: 52770

Use myTextField.setConstraint(TextArea.NUMERIC);

You also have other constraint options such as password, decimal, url, email etc.

Upvotes: 1

Related Questions