Custom keyboard - Android

前端 未结 1 1981
半阙折子戏
半阙折子戏 2021-01-23 17:14

Is there any known combinations of inputTypes on an inputText that would give a Num-pad keyboard with special characters such as $,

相关标签:
1条回答
  • 2021-01-23 17:35

    You can use KeyboardView to for customizing as your need.

    KeyboardView customKeyboard = new KeyboardView(context);
    customKeyboard.setKeyboard(new Keyboard(this, R.xml.customLayout));
    
    customKeyboard.setOnKeyboardActionListener(new OnKeyboardActionListener() {
        //do your work here
    }
    

    Where R.xml.customLayout refers to /res/xml/customLayout.xml. A very good tutorial for customizing a keyboard is..

    • create-your-own-custom-keyboard-for.html

    Which will help you much better.

    0 讨论(0)
提交回复
热议问题