![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
头像
zhanglihow
这个作者很懒,什么都没留下…
展开
-
设置头像且调用手机中的图片编辑器
代码中写的很详细。 下面直接来看下主控制类代码,如下: package com.xiaoma.piccut.demo; import java.io.File; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import转载 2016-05-27 17:56:29 · 816 阅读 · 0 评论 -
自定义用作头像的选择器
github:https://github.com/jiangjiangwei/ImageCrop 两个Button 和一个ImageView,布局就不用写了。 点击拍照: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // 下面这句指定调用相机拍照后的照片存储的路径 intent.putExtra(MediaS原创 2016-04-29 17:09:42 · 902 阅读 · 0 评论 -
Android圆形头像CircleImageView
制作头像等,这是一个以原始图形中心为原点,修剪图片为头像的工具类,此类可以直接在布局文件中加载使用。 需要处理的原始图: 设置后: 在需要添加图片的布局中: <zhangli.newsapp.tools.CircleImageView android:id="@+id/touxiang" android:layout_width="1原创 2016-01-14 16:44:03 · 579 阅读 · 0 评论