I have implemented a
NavigationDrawer in my application. I would like to know how I can add a vertical shadow effect which is below the main Fragment, similar to the picture below.
I have one image on my drawable with the shadow image. It’s called “drawer_shadow.9” but I don’t know how I can implement this inside my
You will need to use a drawable for the shadow. Use the
setDrawerShadow method on the navigationDrawer object. For example:
Link to the official document: setDrawerShadow
Hope this helps