Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Customizing the Keyboard

If you present keyboards in your app – such as in searchable interactions or another custom keyboard – you may wish to customize the keyboard for your users. The best way to do this is through the ScreenManager. For more information presenting keyboards, see the Popup Menus and Keyboards guide.

Setting Keyboard Properties

You can modify the language of the keyboard to change the characters that are displayed.

KeyboardProperties keyboardProperties = new KeyboardProperties();
keyboardProperties.setLanguage(Language.HE_IL); // Set to Israeli Hebrew
keyboardProperties.setKeyboardLayout(KeyboardLayout.AZERTY); // Set to AZERTY

sdlManager.getScreenManager().setKeyboardConfiguration(keyboardProperties);

Other Properties

While there are other keyboard properties available on KeyboardProperties, these will be overridden by the screen manager. The keypressMode must be a specific configuration for the screen manager's callbacks to work properly. The limitedCharacterList, autoCompleteText, and autoCompleteList will be set on a per-keyboard basis when calling sdlManager.getScreenManager.presentKeyboard(...), should custom keyboard properties be set.

View on GitHub.com
Previous Section Next Section