How can I change the default font for keys of keyboard I am writing in android (Eclipse)?
Thank you
I found an answer : Implemented onDraw...
override fun onDraw(canvas: Canvas) {
// super.onDraw(canvas) // commented not to draw default keyboard
if (!isInEditMode) {
onBufferDraw()
if (mBuffer != null)
canvas.drawBitmap(mBuffer!!, 0f, 0f, null)
}
}
private fun onBufferDraw() {
if (mBuffer == null) {
mBuffer = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888)
mCanvas = Canvas(mBuffer!!)
invalidateAllKeys()
}
// the rest of the draw function ...