2

How can I do something like this in android studio:

Navigation bar with Title and Icon and Menue

I would like to have a Navigation bar where you can see the name, the icon and also the oppurtinity to open a navigation drawer :D

(The picture was made in Figma)

lokusking
  • 7,396
  • 13
  • 38
  • 57
Ramin
  • 21
  • 3

1 Answers1

1

set gravity to end in your NavigationView inside DrawerLayout.And add custom view to your toolbar.

<DrawerLayout ...>
  <Content>
  <Toolbar>
     <LinearLayout
        android:orientation="horizontal">
        <!-- Here goes the Image -->
        <ImageView .../>  
        <!--Here goes the title -->
        <TextView ...
           android:gravity="center"/>
    </LinearLayout>
  </Toolbar>
   <MainContent .../>
  </Content>
  <NavigationView 
    android:layout_gravity="end"
    .../>
</DrawerLayout>

This should get you started.

Ravi Theja
  • 3,371
  • 1
  • 22
  • 34