如何在 Android 中使 ListView 透明? [英] How to make a ListView transparent in Android?

查看:20
本文介绍了如何在 Android 中使 ListView 透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

android中如何让ListView透明?

How to make the ListView transparent in android?

背景安卓屏幕图像应该是可见的.

The background android screen image should be visible.

推荐答案

你应该使用更详细的

android:background="@android:color/transparent"
android:cacheColorHint="@android:color/transparent"

根据 Jacky 的回复更新.我最初只是想添加到他的答案中,因为他在示例中使用了普通的十六进制颜色.

Updated with Jacky's response. I originally merely meant to add to his answer, since he was using a plain hex color in the sample.

这篇关于如何在 Android 中使 ListView 透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆