Android Button's background as shape with Shadow

前端 未结 6 1410
南旧
南旧 2021-02-02 03:54

I\'ve made a button background from shapes and is looking quite good for my purpose. The only thing needed is to drop a bit of shadow for it. Here is the code:

         


        
6条回答
  •  别跟我提以往
    2021-02-02 04:22

    In this case I use lib https://github.com/dmytrodanylyk/shadow-layout

    Firstly, you should turn on it in gradle

    dependencies {
        compile 'com.github.dmytrodanylyk.shadow-layout:library:1.0.3'
    }
    

    then put your Button into ShadowLayout

    
            

    It's worsk great for me)

提交回复
热议问题