1
My app only has one activity but with two Layouts.
Switching between the two Layouts is done through a Button that exists in each of the Layouts.
In Layout 1 there is a EditText
of the kind numerical and in Layout 2 there is another EditText
but kind text.
The two Edittexts have the focusable property enabled, but when I switch between Layouts the type of keyboard is not changed automatically, IE, to change the type of keyboard I have to click on Edittext of this Layout.
I’ve tried the java condigo to insert the line edittext2.setFocusable(true)
but it doesn’t work.
How are you switching between layouts? Post the Activity code.
– ramaral
Hello ramaral! I am switching through the Buttons click event. However, thank you for your attention, but I have found the solution: edittext2.requestFocus();
– Vitor Mendanha