xml
1<ImageView 2 android:layout_width="100dp" 3 android:layout_height="100dp" 4 android:contentDescription="@null" 5 android:id="@+id/sample_imageview" 6 />
java
1Picasso.with(コンテキスト).load(表示したい画像).error(エラー画像).into(R.id.sample_imageview);
という実装で、エラー画像を表示するときだけ、ImageViewにscaleType="fitXY"
を追加したいのですが、どのようにやればよいのでしょうか??
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。