2013-02-14 19 views
3

展開子行時,Expandablelistview的背景變得更白。我該如何解決它?當我展開子行時,Expandablelistview的背景變得更白

我設置:

android:cacheColorHint="@null" 
android:scrollingCache="false" 

我也試過:

android:cacheColorHint="@android:color/transparent" 
android:scrollingCache="false" 

但它並沒有解決問題。擴大孩子之前

截圖:

http://i.imgur.com/fbaKPus.png http://i.imgur.com/pHejwDn.png

後:

http://i.imgur.com/hftsxhA.png

編輯:

應用程序使用福爾摩斯主題: ...

Expandablelistview XML文件:

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:orientation="vertical" > 

    <ExpandableListView 
     android:id="@+id/expandableListView" 
     android:layout_width="match_parent" 
     android:layout_height="fill_parent" 
     android:background="@drawable/background" 
     android:cacheColorHint="@android:color/transparent" 
     android:childDivider="@color/expandablelist_divider" 
     android:divider="@color/expandablelist_divider" 
     android:dividerHeight="1dp" 
     android:groupIndicator="@drawable/expandablelistindicator" > 
    </ExpandableListView> 

</LinearLayout> 
+0

未找到第一張截圖 – 2013-02-14 10:45:49

+0

我添加了另一個URL。 – Ziem 2013-02-14 10:48:09

+0

你試過用android:cacheColorHint =「@ android:color/transparent」嗎?沒有android:scrollingCache =「false」 – 2013-02-14 10:51:52

回答

1

主題化是造成你的問題,一個辦法是創建自定義的選擇還是,我建議使用Android河洛顏色發生器,也許還有Android操作欄,樣式發生器從該site,它創建了一個諧波設計。

+0

我應該替換哪些文件/屬性?我嘗試過自定義操作欄樣式,但它不能解決問題。也許我可以修改Action Bar Sherlock的來源? – Ziem 2013-02-14 12:37:44

+0

沒有必要將資源從檔案放到您的項目中,然後您可以參考生成器工具所製作的樣式 – Nickolaus 2013-02-14 13:23:34

相關問題