android - Adding a shadow to Sliding Drawer -


i knew sliding drawer deprecated. imported sliding drawer class own package , customized satisfy requirements. scenario is, want add shadow wraps both handle , content of sliding drawer. if add shadow handle , content separately (by giving image shadow background both handle , content),then shadow makes gap between handle , content. not requirement. please guide me through this.

navigationdrawer.setdrawershadow(r.drawable.somedrawable,gravitycompat.start); 

you need use drawable shadow. use setdrawershadow method on navigationdrawer object.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -