Skip to content

Commit

Permalink
Displays app icon in navigation drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
meikpiep committed Oct 23, 2023
1 parent dc67cdf commit a1ada4f
Showing 1 changed file with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true"
android:orientation="vertical">

<ImageView
android:id="@+id/navigation_drawer_app_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_launcher_foreground"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="16dp"
/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand All @@ -25,14 +38,4 @@
android:valueTo="100.0"
android:stepSize="10.0" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:layout_marginBottom="24dp"
android:text="Text"
android:textAppearance="?attr/textAppearanceBody2"
android:textColor="@color/material_on_surface_emphasis_medium" />

</LinearLayout>

0 comments on commit a1ada4f

Please sign in to comment.