我设计了一个CircularImageView,但当我运行应用程序时,在我的布局中,圆形图像周围出现黑色背景问题,该如何解决这个问题。
XML文件
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/gs_image_userProfileimage"
android:layout_width="80dp"
android:layout_height="80dp"
app:civ_border_color="#95c764"
app:civ_border_width="2dp"
app:civ_shadow_radius="3" />
Java编码:
gs_image_userProfileimage=(ImageView)view.findViewById(R.id.gs_image_userProfileimage);
Picasso.with(getContext())
.load(gs_var_userimage)
.placeholder(R.drawable.getspot_logo)
.into(gs_image_userProfileimage);
尝试使用setLayout(view.Layout_Hardware),但仍然显示相同的内容。