Modify: 屏幕适配

This commit is contained in:
Quyunshuo
2020-08-29 09:54:59 +08:00
parent 03960ef66c
commit 2e4c78cdd9
5 changed files with 48 additions and 11 deletions

View File

@ -35,11 +35,43 @@
app:layout_constraintTop_toBottomOf="@+id/mBtn" />
<FrameLayout
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_width="200dp"
android:layout_height="200dp"
android:background="#333"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<FrameLayout
android:layout_width="300dp"
android:layout_height="100dp"
android:background="#03A9F4"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<FrameLayout
android:layout_width="300dp"
android:layout_height="100dp"
android:background="#9BE446"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<FrameLayout
android:layout_width="200dp"
android:layout_height="300dp"
android:background="#FFEB3B"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<FrameLayout
android:layout_width="200dp"
android:layout_height="300dp"
android:background="#E317CE"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>