<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_width="fill_parent"
android:layout_height="fill_parent" android:src="@drawable/back"
android:scaleType="fitXY" />
<LinearLayout>your views</LinearLayout>
</FrameLayout>
本文介绍了一种使用FrameLayout作为根布局的视图展示方式,并详细解释了如何将ImageView与LinearLayout嵌套使用以达到预期的显示效果。通过具体的XML代码示例,展示了如何设置ImageView的属性以确保图片能够适应其父容器的大小。
1421

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



