2013-02-06 16 views
0

我將scrollView的背景顏色設置爲白色,但是當我改變其中的元素的高度時,我得到了灰色在元素下,我的意思是如果在我的視圖下有額外的空間,在我的滾動視圖這個區域將是灰色或黑色取決於Theme.Holo.Light和(灰色)Theme.Holo.dark(黑色)我得到了scrollView下的灰色

<ScrollView  
      android:layout_width="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" 
      android:layout_height="wrap_content" 
      android:background="@android:color/white" 
      > 
....... 
</ScrollView > 
+0

你可以發佈你的佈局文件和/或你設置scrollView屬性的代碼嗎? – mjsalinger

+0

在此處發佈設計? –

+0

您的scrollView的父佈局可能有一些內部填充..?發佈完整的xml代碼 – Houcine

回答

0

抱歉,這是微不足道的問題我解決它通過使用

<ScrollView 
.... 
    android:layout_height="fill_parent" 
>