繁体   English   中英

"RoundedImageView 的背景颜色自动变为黑色"

[英]Background color of RoundedImageView turns to Black automatically

我正在尝试在 RoundedImageView 中使用 setImageBitmap() 显示透明图像(位图),<\/strong>在 BottomSheetDialog 中背景颜色为蓝色。 如果没有位图,背景颜色是蓝色的<\/strong>,但是一旦将位图加载到视图中,蓝色背景就会变为黑色<\/strong>。 我尝试使用 setBackgroundColor("blue") 但 RoundedImageView 的背景仍然是黑色,并且还显示了我的 RoundedImageView 的蓝色方形背景,这绝对不是故意的。

<\/blockquote>

RoundedImageView 元素<\/strong>

 image_background.xml<\/strong>

 
             
我还添加了我的 Themes.xml 和 background_bottomsheet.xml,以防我的 BottomSheetDialog 在我第一次使用它时出现任何错误。

<\/blockquote>

background_bottomsheet.xml<\/strong>

主题.xml<\/strong>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM