0
0

Студия создает по умолчанию разметку :

<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">


</androidx.constraintlayout.widget.ConstraintLayout>

Если я меняю на

<LinearLayout

</LinearLayout>

У меня все смещается в левый верхний угол, элемент впритык к элементу, без возможности позиционирования поплощади макета.

Что сделать,чтоб выровнять элементы, например по середине? 


student_x99sJhl7
3 years ago






Еще нет ответов