diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-08-14 07:47:57 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-08-14 07:47:57 +0000 |
commit | 275063684779a02efe7ec8ef971bb219b1f4fd33 (patch) | |
tree | bb2ed692f7dc49231d50881be78d7742df63098c /app/src/main/res | |
parent | 7a0a40f696cd05892a42fe5eb2985ee5fdd6f09c (diff) | |
download | infinity-for-reddit-275063684779a02efe7ec8ef971bb219b1f4fd33.tar infinity-for-reddit-275063684779a02efe7ec8ef971bb219b1f4fd33.tar.gz infinity-for-reddit-275063684779a02efe7ec8ef971bb219b1f4fd33.tar.bz2 infinity-for-reddit-275063684779a02efe7ec8ef971bb219b1f4fd33.tar.lz infinity-for-reddit-275063684779a02efe7ec8ef971bb219b1f4fd33.tar.xz infinity-for-reddit-275063684779a02efe7ec8ef971bb219b1f4fd33.tar.zst infinity-for-reddit-275063684779a02efe7ec8ef971bb219b1f4fd33.zip |
Apply custom theme to the header of the navigation drawer.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/side_nav_bar.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/layout/nav_header_main.xml | 6 |
2 files changed, 2 insertions, 13 deletions
diff --git a/app/src/main/res/drawable/side_nav_bar.xml b/app/src/main/res/drawable/side_nav_bar.xml deleted file mode 100644 index 378cf16f..00000000 --- a/app/src/main/res/drawable/side_nav_bar.xml +++ /dev/null @@ -1,9 +0,0 @@ -<shape xmlns:android="http://schemas.android.com/apk/res/android" - android:shape="rectangle"> - <gradient - android:angle="135" - android:centerColor="#0336FF" - android:endColor="#002BF0" - android:startColor="#5954FF" - android:type="linear" /> -</shape>
\ No newline at end of file diff --git a/app/src/main/res/layout/nav_header_main.xml b/app/src/main/res/layout/nav_header_main.xml index 2b30f55a..6619f129 100644 --- a/app/src/main/res/layout/nav_header_main.xml +++ b/app/src/main/res/layout/nav_header_main.xml @@ -2,7 +2,6 @@ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="@dimen/nav_header_height" - android:background="@drawable/side_nav_bar" android:gravity="bottom" android:orientation="vertical" android:theme="@style/ThemeOverlay.AppCompat.Dark"> @@ -11,7 +10,7 @@ android:id="@+id/banner_image_view_nav_header_main" android:layout_width="match_parent" android:layout_height="match_parent" - android:scaleType="centerCrop"/> + android:scaleType="centerCrop" /> <pl.droidsonroids.gif.GifImageView android:id="@+id/profile_image_view_nav_header_main" @@ -20,7 +19,7 @@ android:layout_marginTop="40dp" android:layout_marginBottom="16dp" android:layout_marginStart="16dp" - android:layout_marginEnd="16dp"/> + android:layout_marginEnd="16dp" /> <TextView android:id="@+id/name_text_view_nav_header_main" @@ -30,7 +29,6 @@ android:layout_marginStart="16dp" android:layout_marginEnd="16dp" android:layout_alignParentStart="true" - android:textAppearance="@style/TextAppearance.AppCompat.Body1" android:textSize="?attr/font_default" android:fontFamily="?attr/font_family" android:layout_below="@id/profile_image_view_nav_header_main" |