你好我的應用程序相對佈局背景不能充分伸展它screen.And正在顯示像下面我相對佈局背景不拉伸全屏
我的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" >
那是因爲滾動視圖。滾動查看孩子無法填充高度。 –
那我可否知道這個選擇? – KCRaju
您可以採用scrollview的高度和rel的高度。佈局。如果scrollview.height()> relativelayout.height()然後relativelayout.height()= scrollview.height(); –