From e542ac51388b9293297bb74b851dcb5ded621a3e Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 8 Aug 2019 20:05:45 +0800 Subject: Log in other reddit accounts are available. Add an account switcher in the navigation drawer in MainActivity. --- app/src/main/res/layout/nav_header_main.xml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'app/src/main/res/layout/nav_header_main.xml') diff --git a/app/src/main/res/layout/nav_header_main.xml b/app/src/main/res/layout/nav_header_main.xml index 593385f1..9938d47c 100644 --- a/app/src/main/res/layout/nav_header_main.xml +++ b/app/src/main/res/layout/nav_header_main.xml @@ -30,8 +30,10 @@ android:layout_marginTop="@dimen/nav_header_vertical_spacing" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" + android:layout_alignParentStart="true" android:textAppearance="@style/TextAppearance.AppCompat.Body1" - android:layout_below="@id/profile_image_view_nav_header_main"/> + android:layout_below="@id/profile_image_view_nav_header_main" + android:layout_toStartOf="@id/account_switcher_image_view_nav_header_main" /> + android:layout_alignParentStart="true" + android:layout_below="@id/name_text_view_nav_header_main" + android:layout_toStartOf="@id/account_switcher_image_view_nav_header_main" /> + + -- cgit v1.2.3