【发布时间】:2018-05-29 23:24:55
【问题描述】:
我正在尝试使用滑行制作圆形图像视图... 我按照本教程 How to round an image with Glide library? 进行操作,但我的图像总是被顶部和底部裁剪
我试图改变图像视图的尺寸,但没有任何改变,总是被裁剪和相同的比例
我做错了什么
Glide.with(this).load(MasterFacade.getFacade().getLocalUser().getProfilePicUrl()).apply(RequestOptions.centerCropTransform()).into((ImageView) findViewById(R.id.profileImageView));
和布局
<ImageView
android:id="@+id/profileImageView"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_gravity="center"
android:scaleType="fitXY" />
【问题讨论】:
标签: android imageview android-glide rounded-corners