我在将背景设置为 Android 2.2 (HTC Desire) 上的透明时遇到了麻烦,尽管它在 4.0 (Samsung Galaxy SII) 上运行得很好。
我都试过了
android:background="#00000000"
以及 android:background="@android:color/transparent" 并尝试将其设置为列表中每个项目的 LinearLayout、ListView 和 RelativeLayout。
2.2 是否需要设置一些额外的参数来获得背景透明度?
最佳答案
问题死灵法(我有同样的问题和谷歌搜索):
答案可能在 this question 中,即也设置 listSelector 使焦点颜色透明。
关于android - 无法在 Android 2.2 中使 ListView 背景透明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12692871/