//在清单文件中注册activity
<activity
android:name=".activity.MyActivity.Agent.MyPictureActivity"
android:screenOrientation="portrait"
android:theme="@style/NoActionBar" />
//style-21中设置,使activity半透明状态
<style name="NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowIsTranslucent">true</item>
</style>
private static final int SELECT_PICTURE=1;
private static final int SELECT_CAMERA=2;
private static final int SELECT_CUT=3;
@OnClick({R.id.tv_xuanqu, R.id.btn_agment_undo, R.id.tv_camera})
public
android用户头像的选取,裁剪以及上传
最新推荐文章于 2021-05-29 07:32:51 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)