-5
我試圖設置設置從畢加索圖像的最大寬度和最大高度,但由於某種原因,它不工作。設置來自畢加索的圖像的最大寬度和最大高度。它不適用於Android Studio
這裏是我的代碼:
Picasso.with(this).load(imagePath).transform(new CircleTransform()).into(imageTest);
這是我的xml:
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:maxWidth="42dp"
android:maxHeight="42dp"
android:scaleType="fitCenter"
android:id="@+id/imageTest"/>
我試試吧。它不工作。例如:一張512x512像素的圖像。如果你使用調整大小(42,42)。它並不小。感覺看起來很糟糕。如何讓它更小,看起來還不錯? –