搞了一段时间的Android今天终于对帧布局有了一个深刻的理解和认识!如下一段代码!
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/movie"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/play"
android:layout_gravity="center"
/>
</FrameLayout>
帧布局总结起来就是一句话 "帧布局就帧里的控件(层)的叠加!"