<?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayout android:id="@+id/rl1" android:layout_width="100dp" android:layout_height="100dp" android:layout_centerInParent="true" android:background="@color/colorPrimary"/> <RelativeLayout android:layout_width="100dp" android:layout_height="100dp" android:layout_toLeftOf="@id/rl1" android:background="@color/colorAccent"> </RelativeLayout> </RelativeLayout>
标签:每日,28,2023 From: https://www.cnblogs.com/azwz/p/17166145.html