shadow to layout by 100% radius

I want add shadow to layouts like below image :

I do not want use android:elevation, because not working for android 4.3

Also, I use these libraries but not work correct for me :

How i can set shadow to layouts like top image ? ( smooth, 100% radius and colorful)

Thank you

1 answer

  • answered 2018-03-11 12:52 Karanjeet Singh

    I have two suggestions to make shadow as per your requirement

    you can use 9-patch image, may be this link will help you to create 9-patch with shadow


    solution is to make gradient and set background to your button view.