搞了一段时间的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>
帧布局总结起来就是一句话 "帧布局就帧里的控件(层)的叠加!"
本文通过一个具体的示例详细解释了Android中帧布局的工作原理及使用技巧。了解如何将多个视图元素叠加显示,并掌握帧布局中各属性的作用。
854

被折叠的 条评论
为什么被折叠?



