现在的位置: 首页 > 综合 > 正文

Android 帧布局(FrameLayout)的理解

2013年09月13日 ⁄ 综合 ⁄ 共 515字 ⁄ 字号 评论关闭

搞了一段时间的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>

 

帧布局总结起来就是一句话 "帧布局就帧里的控件(层)的叠加!"

抱歉!评论已关闭.