you need to create a KeyboardView extends class and override OnDraw method like this:
public class MKeyboardView extends KeyboardView {
@Override
public void onDraw(Canvas canvas) {
super.onDraw(canvas);
Paint paint = new Paint();
paint.setTextSize(15);
paint.setColor(Color.GRAY);
List<Key> keys = getKeyboard().getKeys();
for(Key key: keys) {
if(key.codes[0] == 113)
canvas.drawText("1", key.x + (key.width/2), key.y + 25, paint);
}
}
}
you can change the position by changing the x and y parameters.
enjoy :)