我圆ImageView的工作不正常 [英] My circular imageview not working properly

查看:163
本文介绍了我圆ImageView的工作不正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照这个例子[这里] [1]为给circuler形状。我从服务器获取图像,并通过 BaseAdapter 设置,图像显示,但不是在圆形视图。那么,谁能告诉什么是我的code中的错误,下面是我加载图像和路组圆形

<$p$p><$c$c>aQuery.id(holder.propic).image(listData.get(position).get(INTEREST_ACCEPT_IMG),true,true,0,R.drawable.ic_launcher);
位图图标= BitmapFactory.de codeFILE(listData.get(位置)获得(INTEREST_ACCEPT_IMG));holder.propic.setImageBitmap(图标);


解决方案

使用此链接库来获得圆形的图像视图
https://github.com/hdodenhof/CircleImageView

I follow this example [here][1] to to give circuler shape. I am getting images from server and set it via BaseAdapter, the image is showing but not in circular view. So, can anyone tell what is the mistake with my code, following is the way I load the images and set circular shape

aQuery.id(holder.propic).image(listData.get(position).get(INTEREST_ACCEPT_IMG),true,true,0,R.drawable.ic_launcher);


Bitmap icon = BitmapFactory.decodeFile(listData.get(position).get(INTEREST_ACCEPT_IMG));

holder.propic.setImageBitmap(icon);

解决方案

Use this link for library to get circular image view https://github.com/hdodenhof/CircleImageView

这篇关于我圆ImageView的工作不正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆