Skip to content

Commit

Permalink
- update drawer icon;
Browse files Browse the repository at this point in the history
  • Loading branch information
MykhailoNester committed Nov 19, 2024
1 parent e668eaf commit 2efd22f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 6 deletions.
51 changes: 51 additions & 0 deletions example/src/main/res/drawable/ic_crowdin_logo_badge.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="131dp"
android:height="36dp"
android:viewportWidth="131"
android:viewportHeight="36">
<path
android:pathData="M12,0L119,0A12,12 0,0 1,131 12L131,24A12,12 0,0 1,119 36L12,36A12,12 0,0 1,0 24L0,12A12,12 0,0 1,12 0z"
android:fillColor="#ffffff"/>
<path
android:pathData="M36,19.01C36,20.8 36.54,22.23 37.63,23.3C38.71,24.38 40.18,24.92 42.03,24.92C43.88,24.92 45.12,24.46 46.05,23.55C46.97,22.64 47.43,21.57 47.43,20.37V20.26H44.76V20.35C44.76,20.84 44.55,21.26 44.12,21.61C43.7,21.96 43,22.14 42.01,22.14C40.89,22.14 40.08,21.86 39.56,21.32C39.04,20.77 38.78,20.04 38.78,19.13V18.54C38.78,17.63 39.05,16.9 39.57,16.36C40.1,15.81 40.91,15.54 42.01,15.54C42.97,15.54 43.67,15.71 44.1,16.04C44.55,16.37 44.77,16.8 44.77,17.31V17.42H47.44L47.43,17.27C47.39,16.06 46.92,15 46.01,14.11C45.11,13.2 43.78,12.75 42.03,12.75C40.18,12.75 38.71,13.29 37.63,14.37C36.54,15.44 36,16.87 36,18.66V19.01V19.01Z"
android:fillColor="#263238"/>
<path
android:pathData="M49.68,24.59H52.41V18.92C52.41,17.68 53.01,17.04 53.51,16.69C54,16.33 54.57,16.15 55.2,16.15C55.39,16.15 55.57,16.16 55.73,16.18C55.9,16.2 56.06,16.23 56.2,16.26V12.92C56.13,12.89 56,12.86 55.82,12.82C55.64,12.78 55.47,12.77 55.31,12.77C54.66,12.77 54.08,12.94 53.57,13.29C53.11,13.6 52.74,13.98 52.46,14.4C52.43,14.45 52.36,14.43 52.36,14.38L52.12,13.08H49.68V24.59H49.68Z"
android:fillColor="#263238"/>
<path
android:pathData="M57.32,19.01C57.32,20.8 57.88,22.23 59.01,23.3C60.14,24.38 61.62,24.92 63.47,24.92C65.31,24.92 66.78,24.38 67.91,23.3C69.05,22.23 69.61,20.8 69.61,19.01V18.66C69.61,16.87 69.05,15.44 67.91,14.37C66.78,13.29 65.3,12.75 63.47,12.75C61.63,12.75 60.14,13.29 59.01,14.37C57.88,15.44 57.32,16.87 57.32,18.66V19.01ZM60.1,18.54C60.1,17.55 60.39,16.82 60.98,16.36C61.56,15.9 62.39,15.67 63.47,15.67C64.54,15.67 65.36,15.9 65.95,16.36C66.54,16.82 66.83,17.55 66.83,18.54V19.13C66.83,20.17 66.54,20.91 65.96,21.35C65.38,21.79 64.55,22.01 63.47,22.01C62.38,22.01 61.55,21.79 60.97,21.35C60.39,20.91 60.1,20.17 60.1,19.13V18.54H60.1Z"
android:fillColor="#263238"/>
<path
android:pathData="M70.85,13.08L74.28,24.59H77.39L79.82,16.23C79.85,16.14 79.98,16.14 80,16.23L82.63,24.59H85.73L89.19,13.08H85.81L84.11,19.49C84.03,19.78 83.96,20.07 83.9,20.35C83.86,20.53 83.8,20.82 83.76,21C83.75,21.04 83.69,21.04 83.68,21C83.64,20.79 83.58,20.58 83.53,20.35C83.45,20.06 83.37,19.77 83.28,19.49L81.38,13.08H78.15C78.15,13.08 76.24,19.62 75.89,20.92C75.88,20.98 75.8,20.98 75.78,20.92L73.81,13.08H70.85H70.85Z"
android:fillColor="#263238"/>
<path
android:pathData="M90.08,19.01C90.08,20.72 90.54,22.11 91.47,23.19C92.4,24.27 93.69,24.81 95.34,24.81C96.2,24.81 96.95,24.65 97.57,24.34C98.01,24.12 98.57,23.63 98.87,23.34C99,23.87 99.17,24.59 99.17,24.59H101.87V7.85H99.02V14.47C98.66,13.96 98.18,13.57 97.58,13.29C96.99,13.01 96.26,12.86 95.41,12.86C93.81,12.86 92.52,13.41 91.54,14.49C90.57,15.57 90.08,16.96 90.08,18.66V19.01V19.01ZM92.87,19.12L92.86,18.55C92.86,17.72 93.11,17.05 93.62,16.54C94.13,16.03 94.92,15.77 95.99,15.77C96.74,15.77 97.38,15.94 97.9,16.29C97.91,16.3 97.91,16.3 97.92,16.3C98.62,16.78 99.03,17.58 99.03,18.42V19.21C99.03,20.08 98.59,20.9 97.86,21.37C97.86,21.37 97.85,21.38 97.85,21.38C97.29,21.73 96.64,21.91 95.9,21.91C94.82,21.91 94.05,21.65 93.58,21.13C93.1,20.61 92.87,19.94 92.87,19.12L92.87,19.12Z"
android:fillColor="#263238"/>
<path
android:pathData="M105.11,24.59H107.83V13.08H105.11V24.59V24.59ZM104.53,9.94C104.53,10.43 104.69,10.84 105.03,11.16C105.37,11.47 105.85,11.63 106.47,11.63C107.09,11.63 107.56,11.47 107.89,11.15C108.23,10.83 108.4,10.42 108.4,9.94C108.4,9.45 108.24,9.06 107.9,8.73C107.57,8.41 107.09,8.25 106.46,8.25C105.83,8.25 105.37,8.41 105.03,8.73C104.69,9.05 104.53,9.46 104.53,9.94Z"
android:fillColor="#263238"/>
<path
android:pathData="M111.12,24.59H113.84V19.92C113.84,17.28 114.78,15.61 116.81,15.61C118.85,15.61 119.28,16.79 119.28,18.45V24.59H122V17.77C122,15.81 121.6,14.5 120.8,13.85C120,13.18 118.97,12.85 117.73,12.85C116.91,12.85 116.15,13.01 115.45,13.31C114.82,13.58 114.31,13.97 113.91,14.47C113.88,14.29 113.7,13.08 113.7,13.08H111.12V24.59H111.12Z"
android:fillColor="#263238"/>
<path
android:pathData="M23,6H12.92C11.84,6 10.85,6.19 9.98,6.54C9.18,6.86 8.48,7.32 7.9,7.9C7.3,8.5 6.82,9.23 6.5,10.07C6.17,10.92 6,11.87 6,12.92V23C6,24.11 6.19,25.12 6.54,26C6.86,26.81 7.32,27.51 7.9,28.1C8.48,28.68 9.18,29.14 9.99,29.46C10.87,29.81 11.89,30 13,30H23C24.11,30 25.12,29.81 26,29.46C26.81,29.14 27.51,28.68 28.1,28.1C28.68,27.51 29.14,26.81 29.46,26C29.82,25.12 30,24.11 30,23V13C30,11.92 29.82,10.93 29.49,10.07C29.16,9.23 28.69,8.51 28.1,7.9C27.51,7.32 26.81,6.86 26,6.54C25.12,6.18 24.11,6 23,6Z"
android:fillColor="#263238"/>
<path
android:pathData="M20.85,20.71C20.84,20.62 20.77,20.29 20.54,20.28C20.3,20.28 19.82,20.28 19.82,20.28C19.82,20.28 19.52,20.28 19.52,20.57C19.53,21.13 19.85,21.61 20.24,21.93C20.57,22.2 20.97,22.34 21.42,22.34C21.82,22.34 21.87,22.05 21.68,21.96C21.36,21.81 20.94,21.47 20.86,20.71H20.85Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M23,13C21.97,13 20.94,13.13 20,13.36C19.11,13.58 18.3,13.89 17.66,14.28C16.95,14.7 16.41,15.22 16.03,15.81C15.73,16.29 15.53,16.81 15.46,17.37C15.43,17.55 15.42,18.13 16.02,18.28C16.4,18.38 16.99,18.42 17.38,18.46C18.02,18.54 18.2,17.82 18.26,17.7C18.76,16.31 19.51,15.38 20.58,14.76C21.24,14.39 22.03,14.13 23,13.99C23.65,13.89 24.37,13.85 25.19,13.85C25.46,13.85 26.1,13.88 26.1,13.57C26.1,13.33 25.6,13.19 25,13.11C24.2,13.01 23.22,13.01 23,13.01V13Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M20.19,23.57C19.46,23.4 18.24,22.61 17.96,20.6C17.9,20.22 17.7,20.04 17.38,19.98C16.95,19.89 16.21,19.85 15.97,19.82C15.62,19.79 15.37,19.99 15.41,20.59C15.48,21.5 15.85,22.22 16.46,22.92C17.19,23.75 18.15,24.23 19.18,24.21C20.3,24.18 20.38,23.98 20.39,23.83C20.39,23.68 20.32,23.59 20.19,23.56V23.57Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M17.13,25.25C16,25.25 13.63,23.44 13.63,20.61C13.63,20.11 13.33,19.61 12.7,19.42C12.2,19.27 11.48,19.05 11.02,19.02C9.93,18.95 9.98,19.86 10.02,20.34C10.12,22.35 11.01,24.05 12.47,25.01C13.08,25.41 13.8,25.68 14.65,25.84C14.85,25.88 15.56,26.02 16.28,26C17.39,25.95 17.5,25.63 17.5,25.5C17.5,25.34 17.38,25.26 17.13,25.26V25.25Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M26.38,11.04C25.92,10.91 25.46,10.79 25,10.69C24.34,10.55 23.67,10.44 23,10.36C21.34,10.17 19.66,10.16 18.03,10.33C16.59,10.48 14.99,10.84 13.59,11.58C12.13,12.34 10.9,13.52 10.32,15.3C10.2,15.66 9.98,16.98 11.25,17.3C11.66,17.41 12.07,17.59 12.5,17.67C13.74,17.9 14,16.73 14.07,16.5C14.14,16.27 14.22,16.06 14.32,15.83C14.71,14.99 15.3,14.28 15.96,13.73C17.34,12.58 19.05,12.03 20.71,11.77C21.68,11.62 22.65,11.55 23.62,11.58C24.16,11.59 24.62,11.61 25,11.62C25.42,11.64 25.74,11.67 26,11.68C26.77,11.73 26.92,11.74 26.98,11.54C27.1,11.22 26.57,11.09 26.38,11.04Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M23.87,15.62C20.62,15.62 19.78,17.26 19.54,18.34C19.42,18.87 19.74,18.91 20.04,18.97C20.46,19.04 20.79,18.98 20.94,18.58C21.4,17.34 22.02,16.12 24,16.12C24.2,16.12 24.38,15.99 24.38,15.87C24.38,15.75 24.25,15.62 23.88,15.62H23.87Z"
android:fillColor="#ffffff"/>
</vector>
11 changes: 5 additions & 6 deletions example/src/main/res/layout/nav_header_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,29 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/side_nav_bar"
android:orientation="vertical"
android:padding="16dp"
android:theme="@style/ThemeOverlay.AppCompat.Dark">

<ImageView
android:id="@+id/imageView"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="40dp"
android:src="@drawable/ic_crowdin_logo" />
android:src="@drawable/ic_crowdin_logo_badge" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="@string/nav_header_title"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
android:textColor="@color/black" />

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/nav_header_sub_title"
android:textColorLink="?android:textColorPrimary" />
android:textColorLink="@color/black" />

</LinearLayout>

0 comments on commit 2efd22f

Please sign in to comment.