Skip to content

Commit

Permalink
Change nav drawer item layout to scale vector drawables
Browse files Browse the repository at this point in the history
  • Loading branch information
avazirna committed Sep 2, 2024
1 parent 02b4e46 commit 2f66a3e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/res/layout/nav_drawer_item_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,22 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal" >
android:orientation="horizontal"
android:weightSum="5">

<ImageView
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="match_parent"
android:id="@+id/drawer_icon"
android:layout_marginRight="@dimen/standard_spacer_double"
android:layout_marginEnd="@dimen/standard_spacer_double" />
android:layout_marginEnd="@dimen/standard_spacer_double"
android:layout_weight="1"/>

<TextView
android:id="@+id/drawer_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="4"/>

</LinearLayout>

Expand Down

0 comments on commit 2f66a3e

Please sign in to comment.