diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-08 12:05:45 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-08 12:05:45 +0000 |
commit | e542ac51388b9293297bb74b851dcb5ded621a3e (patch) | |
tree | c6c7073946063ca1a430f85ce0335d51d8d0812b /app/src/main/res/layout/nav_header_main.xml | |
parent | 5b5da3d3fd44d79bc301546b7be94de0a206e020 (diff) | |
download | infinity-for-reddit-e542ac51388b9293297bb74b851dcb5ded621a3e.tar infinity-for-reddit-e542ac51388b9293297bb74b851dcb5ded621a3e.tar.gz infinity-for-reddit-e542ac51388b9293297bb74b851dcb5ded621a3e.tar.bz2 infinity-for-reddit-e542ac51388b9293297bb74b851dcb5ded621a3e.tar.lz infinity-for-reddit-e542ac51388b9293297bb74b851dcb5ded621a3e.tar.xz infinity-for-reddit-e542ac51388b9293297bb74b851dcb5ded621a3e.tar.zst infinity-for-reddit-e542ac51388b9293297bb74b851dcb5ded621a3e.zip |
Log in other reddit accounts are available. Add an account switcher in the navigation drawer in MainActivity.
Diffstat (limited to 'app/src/main/res/layout/nav_header_main.xml')
-rw-r--r-- | app/src/main/res/layout/nav_header_main.xml | 17 |
1 files changed, 15 insertions, 2 deletions
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" /> <TextView android:id="@+id/karma_text_view_nav_header_main" @@ -39,6 +41,17 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" - android:layout_below="@id/name_text_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" /> + + <ImageView + android:id="@+id/account_switcher_image_view_nav_header_main" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:layout_alignParentBottom="true" + android:layout_alignParentEnd="true" + android:src="@drawable/ic_baseline_arrow_drop_down_24px" /> </RelativeLayout> |