My app only has one activity but two Layouts.
The switching between the two Layouts is done through a Button that exists in each of the Layouts.
In Layout 1 there is a% num of type numeric and in Layout 2 there is another EditText
but type text .
The two EditTexts have the focusable property active, but when I switch between Layouts the keyboard type does not change automatically, ie to change the type of keyboard I have to click on the EditText of this Layout.
I have tried in java code to insert the line EditText
but it does not work.