我的相对布局背景没有全屏拉伸 [英] My Relative layout background not stretching full screen
本文介绍了我的相对布局背景没有全屏拉伸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序相对布局背景中的Hello没有拉伸全屏。它如下所示
我的XML文件::
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#CACACA"
android:orientation="vertical" >
推荐答案
尝试此操作:
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#CACACA">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
......
这篇关于我的相对布局背景没有全屏拉伸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文