xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/ListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:rotationX="-4"
tools:context=".MainActivity">
<TextView
android:id="@+id/mainLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="хз"
android:text="Список "
android:textSize="17sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.465"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.059"
tools:ignore="HardcodedText" />
<EditText
android:id="@+id/user_data"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="10"
android:hint="Введите текст"
android:inputType="text"
android:textColorHint="#8D6E63"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/mainLabel"
app:layout_constraintVertical_bias="0.036"
tools:ignore="HardcodedText,MissingConstraints,TouchTargetSizeCheck,TextContrastCheck" />
<Button
android:id="@+id/button"
android:layout_width="156dp"
android:layout_height="51dp"
android:ellipsize="start"
android:scrollbarSize="10sp"
android:text="Добавить"
android:textSize="20sp"
app:iconSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/user_data"
app:layout_constraintVertical_bias="0.041"
tools:ignore="HardcodedText" />
<ListView
android:id="@+id/ListView"
android:layout_width="409dp"
android:layout_height="496dp"
android:layout_marginTop="12dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button"
app:layout_constraintVertical_bias="1.0"
tools:ignore="DuplicateIds" />
</androidx.constraintlayout.widget.ConstraintLayout>
Потому что у тебя ListView - это констрейнт лэйаут.
НЕ НАДО СЮДА ПРИСЫЛАТЬ ПРОСТЫНИ СВОЕГО КОДА!!!
Обсуждают сегодня