andorid之帧布局FrameLayout
FrameLayout(帧布局)
:layout/activity_main.xml
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<ImageView android:layout_width="128dp"
android:layout_height="128dp"
android:src="@drawable/p03"/>
<ImageView android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/p02"/>
<ImageView android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/p01"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="查看图片"
android:layout_gravity="bottom|center_horizontal"
android:textColor="#000"
android:textSize="25dp"
/>
</FrameLayout>
效果:
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。