Android Picasso加载后未填充父级的ImageView宽度(在某些设备上)
我的imageView有问题,使用毕加索加载后,imageView的宽度无法填充父对象 在nexus 4和Oppo设备上: 在nexus 5和一些三星设备上: 这是XMLAndroid Picasso加载后未填充父级的ImageView宽度(在某些设备上),android,imageview,picasso,Android,Imageview,Picasso,我的imageView有问题,使用毕加索加载后,imageView的宽度无法填充父对象 在nexus 4和Oppo设备上: 在nexus 5和一些三星设备上: 这是XML <ImageView android:id="@+id/img_photo_pengaduan" android:layout_width="fill_parent" android:layout_height="match_p
<ImageView
android:id="@+id/img_photo_pengaduan"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:src="@drawable/placeholder" />
我想要Nexus5上的结果。如何解决这个问题?感谢adjustViewBounds在低版本sdk上不起作用,您可以尝试设置scaletype或layout\u width layout height或loadx.fitXY.intox谢谢您的澄清。对于样式点,您更喜欢匹配父项而不是填充父项。您尝试过吗?
Picasso.with(activity)
.load(url_phpto)
.placeholder(R.drawable.placeholder)
.into(holder.img_photo_pengaduan);