From 6ffb64d388c2d3613c9add9902c83661555e21a5 Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Tue, 24 Oct 2017 22:56:50 +0200 Subject: [PATCH] centralize avatar corner radius value Signed-off-by: Andy Scherzinger --- app/src/main/res/layout/rv_item_call.xml | 4 ++-- app/src/main/res/layout/rv_item_contact.xml | 4 ++-- app/src/main/res/values/dimens.xml | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/layout/rv_item_call.xml b/app/src/main/res/layout/rv_item_call.xml index e25072d81..57e12edc6 100644 --- a/app/src/main/res/layout/rv_item_call.xml +++ b/app/src/main/res/layout/rv_item_call.xml @@ -36,7 +36,7 @@ android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin" android:scaleType="centerInside" - app:aiv_CornerRadius="20dp" + app:aiv_CornerRadius="@dimen/avatar_corner_radius" app:aiv_ShowBoarder="false" app:aiv_TextSizeRatio="0.5"/> @@ -48,7 +48,7 @@ android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin" android:scaleType="centerInside" - app:aiv_CornerRadius="20dp" + app:aiv_CornerRadius="@dimen/avatar_corner_radius" app:aiv_ShowBoarder="false" app:aiv_TextSizeRatio="0.5"/> diff --git a/app/src/main/res/layout/rv_item_contact.xml b/app/src/main/res/layout/rv_item_contact.xml index 71433a8ac..cd1b193e0 100644 --- a/app/src/main/res/layout/rv_item_contact.xml +++ b/app/src/main/res/layout/rv_item_contact.xml @@ -37,7 +37,7 @@ android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin" android:scaleType="centerInside" - app:aiv_CornerRadius="20dp" + app:aiv_CornerRadius="@dimen/avatar_corner_radius" app:aiv_ShowBoarder="false" app:aiv_TextSizeRatio="0.5"/> @@ -49,7 +49,7 @@ android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin" android:scaleType="centerInside" - app:aiv_CornerRadius="20dp" + app:aiv_CornerRadius="@dimen/avatar_corner_radius" app:aiv_ShowBoarder="false" app:aiv_TextSizeRatio="0.5"/> diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index ddcf3af8b..b9e2a169b 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -14,5 +14,6 @@ 8dp 8dp 40dp + 20dp