framelayout

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">




    <FrameLayout
        android:layout_width="400dp"
        android:layout_height="400dp"
        android:background="#ff0000">

        <FrameLayout
            android:foreground="@mipmap/ic_launcher"
            android:foregroundGravity="right|bottom"
            android:layout_width="300dp"
            android:layout_height="300dp"
            android:background="#ff00ff">

        </FrameLayout>
    </FrameLayout>

    <FrameLayout
        android:layout_width="200dp"
        android:layout_height="200dp"
        android:background="#00ff00">

    </FrameLayout>
</FrameLayout>
posted @ 2023-03-29 11:26  会秃头的小白  阅读(13)  评论(0)    收藏  举报