Skip to content

Commit df91754

Browse files
committed
use center crop at the contact images
1 parent bde4987 commit df91754

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
android:layout_height="@dimen/top_contact_image_height"
2525
android:layout_marginBottom="@dimen/normal_margin"
2626
android:contentDescription="@string/change_photo"
27+
android:scaleType="centerCrop"
2728
tools:src="@drawable/ic_person_vector" />
2829

2930
<ImageView

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
android:layout_height="@dimen/top_contact_image_height"
2525
android:layout_marginBottom="@dimen/normal_margin"
2626
android:contentDescription="@string/change_photo"
27+
android:scaleType="centerCrop"
2728
tools:src="@drawable/ic_person_vector" />
2829

2930
<ImageView

0 commit comments

Comments
 (0)