Redeem Now
Read More
Read now

How to show shadow in toolbar below API 21


In this blog,
I have shown you how to make a drop shadow in the toolbar below API 21.


In this example, I have created a custom background XML(drop shadow) and applied it inside the FrameLayout.
And this will give a drop shadow effect on the toolbar.






Note: Don’t forget to hide your view if the device you are running is >= to Lollipop.

if not you’ll end up with two shadows.



. . .

Comments (6)

Add Your Comment

  • Nara
    Thanks. After every site i searched for, it’s the first site that really works!
    • Aman Gupta
      Your most welcome @disqus_mWMUto60IT:disqus . We always try to write very needful blogs for all android/ios developers.
  • Ricardo
    Thank you, its help me
    • Aman Gupta
      Your most welcome @Ricardo.
  • Bhola Nath Mahto
    Thanks it works
    • Aman Gupta
      Your most welcome.
  • css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again