diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/view_nav_header.xml | 20 | ||||
-rw-r--r-- | app/src/main/res/values/dimens.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 10 |
3 files changed, 17 insertions, 14 deletions
diff --git a/app/src/main/res/layout/view_nav_header.xml b/app/src/main/res/layout/view_nav_header.xml index 38df36d7..a5dc05d6 100644 --- a/app/src/main/res/layout/view_nav_header.xml +++ b/app/src/main/res/layout/view_nav_header.xml @@ -8,10 +8,10 @@ <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" - android:elevation="2dp" - android:layout_height="160dp"> + android:layout_height="160dp" + android:elevation="2dp"> - <androidx.appcompat.widget.AppCompatImageView + <ImageView android:id="@+id/background" android:layout_width="0dp" android:layout_height="160dp" @@ -54,9 +54,9 @@ android:id="@+id/name" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/kau_activity_horizontal_margin" + android:layout_marginStart="@dimen/drawer_nav_horizontal_margins" android:layout_marginTop="@dimen/kau_activity_vertical_margin" - android:layout_marginEnd="@dimen/kau_activity_horizontal_margin" + android:layout_marginEnd="@dimen/drawer_nav_horizontal_margins" android:layout_marginBottom="@dimen/kau_activity_vertical_margin" android:clickable="false" android:lines="1" @@ -69,10 +69,10 @@ <ImageView android:id="@+id/arrow" - android:layout_width="18dp" - android:layout_height="18dp" - android:layout_marginStart="@dimen/kau_activity_horizontal_margin" - android:layout_marginEnd="@dimen/kau_activity_horizontal_margin" + android:layout_width="12dp" + android:layout_height="12dp" + android:layout_marginStart="@dimen/drawer_nav_horizontal_margins" + android:layout_marginEnd="@dimen/drawer_nav_horizontal_margins" app:layout_constraintBottom_toBottomOf="@id/name" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@id/name" /> @@ -84,6 +84,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" + android:paddingTop="8dp" + android:paddingBottom="8dp" android:visibility="gone" tools:visibility="visible"> diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index c81aee3c..b2df756d 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -15,4 +15,5 @@ <dimen name="dialog_corner_radius">8dp</dimen> <dimen name="drawer_account_avatar_size">32dp</dimen> + <dimen name="drawer_nav_horizontal_margins">24dp</dimen> </resources> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 38c5de7d..f17d005c 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -141,8 +141,8 @@ <!-- </style>--> <style name="Main.DrawerMargins" parent=""> - <item name="android:layout_marginStart">@dimen/kau_activity_horizontal_margin</item> - <item name="android:layout_marginEnd">@dimen/kau_activity_horizontal_margin</item> + <item name="android:layout_marginStart">@dimen/drawer_nav_horizontal_margins</item> + <item name="android:layout_marginEnd">@dimen/drawer_nav_horizontal_margins</item> <item name="android:layout_marginTop">@dimen/kau_activity_vertical_margin</item> <item name="android:layout_marginBottom">@dimen/kau_activity_vertical_margin</item> </style> @@ -162,8 +162,8 @@ <item name="android:layout_width">match_parent</item> <item name="android:layout_height">wrap_content</item> <item name="android:drawablePadding">16dp</item> - <item name="android:paddingStart">24dp</item> - <item name="android:paddingEnd">24dp</item> + <item name="android:paddingStart">@dimen/drawer_nav_horizontal_margins</item> + <item name="android:paddingEnd">@dimen/drawer_nav_horizontal_margins</item> <item name="android:paddingTop">16dp</item> <item name="android:paddingBottom">16dp</item> <item name="android:gravity">center_vertical</item> @@ -178,7 +178,7 @@ <item name="android:drawablePadding">10dp</item> <item name="android:gravity">center_vertical</item> <item name="android:paddingStart">18dp</item> - <item name="android:paddingEnd">24dp</item> + <item name="android:paddingEnd">@dimen/drawer_nav_horizontal_margins</item> </style> </resources> |