我正在使用一个 Web View ,我在其中添加了一个 ImageView 。如何将此 ImageView 的背景设置为透明?
我试过这个:
mImageview.setBackgroundResource(R.color.trans);
trans
→ <color name="trans">#00000000 </color>
.
您可以通过在 XML 中添加以下代码来设置任何布局、任何 View 或任何组件的背景透明:
android:background="@android:color/transparent"
关于android - 在 Android 上设置 imageview 的透明背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1492554/
欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://jike.in/) | Powered by Discuz! X3.4 |