This is what I use to create a textfield:
final EditText username_input = new EditText(this); // create an text input field
username_input.setHint("Enter Username"); // put a hint in it
but this creates a textfield where capslock is enabled on default.
How do I create a textfield where caplocks isn’t enabled on default?
Try