After the second EditText button should be located. But for some reason this second EditText pushes it out of the layout. How to solve a problem? enter image description here

    1 answer 1

    The second EditText has the parameter layout_width="match_parent" , therefore it replaces the button. You can try to organize the layout through layout_weight , or wrap LinearLayout in RelativeLayout, move the button to RelativeLayout with fastening on the right edge, and fix LinearLayout from left edge to button.

    • Thanks for the advice, I will try. - Evgeny