djkeyboard

Project Url: xudjx/djkeyboard
Introduction: Customize the keyboard, both number keyboard and alphabet keyboard.
More: Author   ReportBugs   
Tags:

Customize the keyboard, both number keyboard and alphabet keyboard.

Please import the module.

Number Keyboard

You can use as follow:

KeyboardManager keyboardManagerNumber = new KeyboardManager(this);
NumberKeyboard numberKeyboard = new NumberKeyboard(context,NumberKeyboard.DEFAULT_NUMBER_XML_LAYOUT);
keyboardManagerNumber.bindToEditor(editText2, numberKeyboard);

Number Keyboard

Alphabet Keyboard

You can use as follow:

KeyboardManager keyboardManagerAbc = new KeyboardManager(this);

keyboardManagerAbc.bindToEditor(editText1, new ABCKeyboard(context, ABCKeyboard.DEFAULT_ABC_XML_LAYOUT));

Alphabet Keyboard

By the way, the module also has some useful interface for customized requirements.

public interface KeyStyle {

    public Drawable getKeyBackound(Key key);

    public Float getKeyTextSize(Key key);

    public Integer getKeyTextColor(Key key);

    public CharSequence getKeyLabel(Key key);
}
public interface ActionDoneClickListener {
    void onActionDone(CharSequence charSequence);
}
Apps
About Me
GitHub: Trinea
Facebook: Dev Tools