java - 将外部图像添加到圆形 ImageView

标签 java android image imageview frame

我有一个圆形图像:

    <com.mikhaellopez.circularimageview.CircularImageView
        android:id="@+id/circularIcon"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:src="@drawable/img_gr"
        app:civ_border_color="#EEEEEE"
        app:civ_border_width="1dp"
        app:civ_shadow="true"
        app:civ_shadow_radius="3"
        android:layout_gravity="center_horizontal"
        app:civ_shadow_color="#8C0F0F"
        android:layout_weight="1"
        android:visibility="visible"/>

我想在它周围添加一些类似“框架”的东西:

/image/uadIp.png

因此框架将完全包裹圆形 ImageView

最佳答案

如果你想向圆形 ImageView 添加一个简单的框架,你可以使用这个库 CircleImageView

enter image description here

关于java - 将外部图像添加到圆形 ImageView ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61363600/

相关文章:

css - 如何使 Shiny 应用程序中的图像宽度动态化?

java - 我将如何创建 JFreeChart 散点图最佳拟合线

java - 变量的生命周期 : Reference becomes NULL

android - 自定义 simpleCursorAdapter 中的 getLayoutInflater

java - 安卓改造 : Can't convert the returned JSON reponse to the specified model class when response code ! = 200

php - 按比例在图片上写文字

带有 CSS 图像替换 (FoR) 的 jQuery 可拖动(和可排序)导致图像变为 'disappear'

java - 如何使用模拟覆盖@Produces

java - 在Java中查找一行上的所有像素

Android:如何通过短信发送和接收数据