Skip to content

Commit 1213678

Browse files
domdomeggneslihanturan
authored andcommitted
Use fitCenter instead of centerCrop where sensible (commons-app#2149)
1 parent 83b52fc commit 1213678

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/src/main/res/layout/activity_share.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
android:id="@+id/backgroundImage"
2727
android:layout_width="match_parent"
2828
android:layout_height="match_parent"
29-
app:actualImageScaleType="centerCrop" />
29+
app:actualImageScaleType="fitCenter" />
3030

3131
<FrameLayout
3232
android:id="@+id/single_upload_fragment_container"

app/src/main/res/layout/activity_upload.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
android:layout_height="match_parent"
2424
android:layout_below="@id/toolbar"
2525
android:background="@color/commons_app_blue_dark"
26-
app:actualImageScaleType="centerCrop" />
26+
app:actualImageScaleType="fitCenter" />
2727

2828
<android.support.constraint.ConstraintLayout
2929
android:id="@+id/activity_upload_cards"

app/src/main/res/layout/fragment_similar_image_dialog.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
android:layout_width="160dp"
1414
android:layout_height="240dp"
1515
android:layout_margin="3dp"
16-
app:actualImageScaleType="centerCrop" />
16+
app:actualImageScaleType="fitCenter" />
1717
<com.facebook.drawee.view.SimpleDraweeView
1818
android:id="@+id/possibleImage"
1919
android:layout_width="160dp"
2020
android:layout_height="240dp"
2121
android:layout_margin="3dp"
22-
app:actualImageScaleType="centerCrop" />
22+
app:actualImageScaleType="fitCenter" />
2323
</LinearLayout>
2424
<TextView
2525
android:layout_width="match_parent"

app/src/main/res/layout/layout_contribution.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
android:id="@+id/contributionImage"
2323
android:layout_width="match_parent"
2424
android:layout_height="240dp"
25-
app:actualImageScaleType="centerCrop"
25+
app:actualImageScaleType="fitCenter"
2626
/>
2727

2828
<LinearLayout

0 commit comments

Comments
 (0)