centralize avatar corner radius value

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
AndyScherzinger 2017-10-24 22:56:50 +02:00
parent 9c65ac7c9f
commit 6ffb64d388
3 changed files with 5 additions and 4 deletions

View file

@ -36,7 +36,7 @@
android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:scaleType="centerInside" android:scaleType="centerInside"
app:aiv_CornerRadius="20dp" app:aiv_CornerRadius="@dimen/avatar_corner_radius"
app:aiv_ShowBoarder="false" app:aiv_ShowBoarder="false"
app:aiv_TextSizeRatio="0.5"/> app:aiv_TextSizeRatio="0.5"/>
@ -48,7 +48,7 @@
android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:scaleType="centerInside" android:scaleType="centerInside"
app:aiv_CornerRadius="20dp" app:aiv_CornerRadius="@dimen/avatar_corner_radius"
app:aiv_ShowBoarder="false" app:aiv_ShowBoarder="false"
app:aiv_TextSizeRatio="0.5"/> app:aiv_TextSizeRatio="0.5"/>

View file

@ -37,7 +37,7 @@
android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:scaleType="centerInside" android:scaleType="centerInside"
app:aiv_CornerRadius="20dp" app:aiv_CornerRadius="@dimen/avatar_corner_radius"
app:aiv_ShowBoarder="false" app:aiv_ShowBoarder="false"
app:aiv_TextSizeRatio="0.5"/> app:aiv_TextSizeRatio="0.5"/>
@ -49,7 +49,7 @@
android:layout_marginEnd="@dimen/activity_horizontal_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:scaleType="centerInside" android:scaleType="centerInside"
app:aiv_CornerRadius="20dp" app:aiv_CornerRadius="@dimen/avatar_corner_radius"
app:aiv_ShowBoarder="false" app:aiv_ShowBoarder="false"
app:aiv_TextSizeRatio="0.5"/> app:aiv_TextSizeRatio="0.5"/>

View file

@ -14,5 +14,6 @@
<dimen name="padding_between_elements">8dp</dimen> <dimen name="padding_between_elements">8dp</dimen>
<dimen name="margin_between_elements">8dp</dimen> <dimen name="margin_between_elements">8dp</dimen>
<dimen name="avatar_size">40dp</dimen> <dimen name="avatar_size">40dp</dimen>
<dimen name="avatar_corner_radius">20dp</dimen>
</resources> </resources>