How to change android keyboard key font?
问题 How can I change the default font for keys of keyboard I am writing in android (Eclipse)? Thank you 回答1: One solution is to use keboardView.java instead of android.inputmethodservice.KeyboardView . You also need to change paint.setTypeface(Typeface.DEFAULT_BOLD) to paint.setTypeface(my font) and you must add attrs.xml to your project. 回答2: I found an answer : Implemented onDraw... @Override public void onDraw(Canvas canvas) { super.onDraw(canvas); try{ onBufferDraw(); }catch(Exception ex){ }