ImageView
如图所示,我在 android studio 中并排放置的两个垂直线性布局之间添加时遇到问题。这里
<?xml version="1.0" encoding="utf-8"?>
<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"
android:background="#FFFFFF"
tools:context=".MainActivity">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:alwaysDrawnWithCache="false"
android:animateLayoutChanges="false"
tools:visibility="visible" >
<ImageView
android:id="@+id/imageView11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="80dp"
android:layout_marginTop="73dp"
android:layout_marginEnd="106dp"
android:layout_marginBottom="304dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/download" />
</androidx.constraintlayout.widget.ConstraintLayout>
**<LinearLayout**
android:layout_width="202dp"
android:layout_height="598dp"
android:background="#F4F6F2"
android:backgroundTint="#F0F4EC"
android:orientation="horizontal"
tools:layout_editor_absoluteX="2dp"
tools:layout_editor_absoluteY="4dp" />
**<LinearLayout**
android:layout_width="206dp"
android:layout_height="601dp"
android:background="#FEFEFF"
android:backgroundTint="#2196F3"
android:orientation="horizontal"
tools:layout_editor_absoluteX="204dp"
tools:layout_editor_absoluteY="1dp">
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>