android – How to implement a NavigationView with slider button in xml layout-ThrowExceptions

Exception or error:

I need to make a layout like the Image given

I am using NavigationView within DrawerLayout, and want to add a button as shown in the Image Button to show that will always remain in screen on a particular activity, its basically for showing the user that there is a navigationView. SemiCircle button should always in screen even if drawer closed.
The Layout I am trying is

       *custom toolbar*


          *if here i am adding button its not working*
</androidx.drawerlayout.widget.DrawerLayout> ```
How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *