imageViewをcenterCropの要領でFrameLayout内で左寄せし、右側の見切れさせたいです。
何か良い方法はありますでしょうか。現在のコードは以下の通りです。
<FrameLayout android:layout_width="0dp" android:layout_height="0dp" android:layout_marginTop="8dp" android:layout_marginBottom="8dp" app:layout_constraintBottom_toTopOf="@+id/guideline5" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@+id/guideline8">
<ImageView android:id="@+id/imageView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="centerCrop" app:srcCompat="@drawable/imageView1" /> </FrameLayout>
よろしくお願いします。
あなたの回答
tips
プレビュー