【发布时间】:2020-06-03 22:45:49
【问题描述】:
我正在使用 Glide 库从 url 获取用户的个人资料图像并将其显示在 ImageView 视图中。 我想在该个人资料图像的右侧设置相机图标,如下所示。
这是我的 imave 视图:
<ImageView
android:id="@+id/imageView"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginTop="700dp" />
滑翔:
ImageView imageView = findViewById(R.id.imageView);
Glide.with(imageView)
.load(URL)
.circleCrop()
.placeholder(setCircularImage(R.drawable.prof))
.error(setCircularImage(R.drawable.t))
.fallback(setCircularImage(R.drawable.camera_red))
.into(imageView);
我该怎么做,我应该使用哪个库在个人资料图像的右侧制作相机图标?
我不希望图标与个人资料图片重叠。我希望裁剪个人资料图像以给相机图标留出位置(就像在 facebook 应用程序个人资料图像上一样)。谢谢。
谢谢。
【问题讨论】:
标签: android android-imageview android-glide