1
我正在使用毕加索图像并试图将图像放入圆形图像视图中,但图片仍为正方形。我该如何解决它?如何将图像放在圆形图像视图中
Picasso.with(context).load(resId).resizeDimen(R.dimen.image_size, R.dimen.image_size).into(holder.mImageViewItem);
IMAGE_SIZE = 60dp
绘制资源:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="#FFF"/>
和ImageView的:
<ImageView
android:id="@+id/picture_imageview_item"
android:layout_marginTop="15dp"
android:layout_marginLeft="25dp"
android:layout_marginBottom="15dp"
android:layout_width="60dp"
android:layout_height="60dp"
android:background="@drawable/buttonshape" />
抱歉,但它的犯规帮助我。悲伤:( –
有什么问题? –
没有什么变化:(会尝试使用一些库 –