【问题标题】:How to create rounded corner image using volley library android如何使用 volley library android 创建圆角图像
【发布时间】:2015-06-08 14:53:57
【问题描述】:

我正在从服务器获取具有方形形状的图像 url,我必须将其制作成圆角图像。实际上我正在使用 volley 库,我知道如何使用通用图像加载器和 picasso 库创建圆角图像。在 volley 库中我我正在像 setimageUrl 一样在网络 imageview 中设置图像,请帮助我

holder.ivImage.setImageUrl(url, imageLoader);

【问题讨论】:

  • 使用这个Library
  • 请看清楚问题(如果问题不清楚,请见谅)。我正在使用 com.android.volley.toolbox.NetworkImageView 那么我该如何使用 de.hdodenhof.circleimageview.CircleImageView

标签: android imageview android-volley


【解决方案1】:

我找到了一个使 imageview 圆形的源代码,例如https://github.com/hdodenhof/CircleImageView。这是扩展imageview,我只是让它扩展NetworkImageView。对我来说一切都很好。

【讨论】:

【解决方案2】:

使用RoundedBitmapDrawable制作圆角图片,这样你用什么样的imageview都无所谓

【讨论】:

    【解决方案3】:

    这个项目可能对你有用RoundedImageView

    【讨论】:

      猜你喜欢
      • 2014-10-06
      • 2014-09-13
      • 1970-01-01
      • 2010-12-18
      • 1970-01-01
      • 2013-06-13
      • 2012-02-29
      • 2014-12-25
      • 1970-01-01
      相关资源
      最近更新 更多