When you tap on a TextField in LibGDX, sometimes it can stay behind the onscreen-keyboard. You can't see what you are typing. I'm using TextInputListener to avoid this problem:
textPassword.setOnscreenKeyboard(new TextField.OnscreenKeyboard() {
@Override
public void show(boolean visible) {
Gdx.input.getTextInput(new Input.TextInputListener() {
@Override
public void input(String text) {
textPassword.setText(text);
}
@Override
public void canceled() {
}
}, "" , "", "");
}
});
But in this way, data entry is possible in two steps:
Step-1: https://i.ibb.co/vYHGrJj/1.png
Step-2: https://i.ibb.co/m5D3FMq/2.png
This is not a user-friendly approach.
Is it possible to skip the first step and start the second step directly?