没有合适的资源?快使用搜索试试~ 我知道了~
安卓开发中好多地方地方会显示图片的布局,而且还是圆形图片,查过资料后实现了该功能,代码中有布局文件和java文件,只需要在自己的代码中添加这部分代码就可以实现。
资源推荐
资源详情
资源评论
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![jar](https://img-home.csdnimg.cn/images/20210720083455.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![java](https://img-home.csdnimg.cn/images/20210720083646.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
布局文件:
<RelativeLayout
android:layout_width="110dp"
android:layout_height="110dp"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp" >
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_centerInParent="true"
android:contentDescription="@string/app_name"
android:scaleType="fitXY"
android:src="@drawable/logo_round" />
<ImageView
android:id="@+id/edit_data_iv_photo"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_centerInParent="true"
android:contentDescription="@string/app_name"
android:scaleType="fitXY" />
</RelativeLayout>
java文件:
private DisplayImageOptions moIlconfig;
<RelativeLayout
android:layout_width="110dp"
android:layout_height="110dp"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp" >
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_centerInParent="true"
android:contentDescription="@string/app_name"
android:scaleType="fitXY"
android:src="@drawable/logo_round" />
<ImageView
android:id="@+id/edit_data_iv_photo"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_centerInParent="true"
android:contentDescription="@string/app_name"
android:scaleType="fitXY" />
</RelativeLayout>
java文件:
private DisplayImageOptions moIlconfig;
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
- qq_369702552017-11-06真的,CSDN的积分C币就这么好拿的嘛,根本不行啊
![avatar](https://profile-avatar.csdnimg.cn/05659f4f90104d39a139b4e22919aa4b_u011524001.jpg!1)
小样不一样
- 粉丝: 2
- 资源: 4
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)