What you are facing is the problem with
ConstraintLayout
in Android Studio.
Personally, this is the worst thing that Google has ever added to Android OS or Android Studio for Android development, it makes Android UI design more painful, than helpful. What happens is, that you create a layout and you constrain the layout to at least 2 sides (right, left, top, bottom) and add the elements that control the view, and other views in the view.
You would need to add constraints, please see the following link as it explains a bit about this layout. Also, in almost all of the new layouts you are provided with a
ConstraintLayout
, you can change that as well in the Android Layout.
Build a Responsive UI with ConstraintLayout | Android Developers[
^]