Skip to content

Commit 0dcffcf

Browse files
committed
Fix image scale type
1 parent c88a91d commit 0dcffcf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

samplejava/src/main/res/layout/attachment_imgur.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
android:layout_marginStart="8dp"
1212
android:layout_marginTop="4dp"
1313
android:layout_marginEnd="8dp"
14+
android:scaleType="centerCrop"
1415
app:layout_constraintBottom_toBottomOf="parent"
1516
app:layout_constraintDimensionRatio="h,1:1"
1617
app:layout_constraintEnd_toEndOf="parent"

samplekotlin/src/main/res/layout/attachment_imgur.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
android:layout_marginStart="8dp"
1212
android:layout_marginTop="4dp"
1313
android:layout_marginEnd="8dp"
14+
android:scaleType="centerCrop"
1415
app:layout_constraintBottom_toBottomOf="parent"
1516
app:layout_constraintDimensionRatio="h,1:1"
1617
app:layout_constraintEnd_toEndOf="parent"

0 commit comments

Comments
 (0)