Create shadow for dialog

前端 未结 2 1147
攒了一身酷
攒了一身酷 2021-01-03 05:23

I want to create a shadow for my custom dialog is that possible ?

GhazalActivity.public void viewShareMenu() {
        Dialog share=new Dialog(this,R.style.s         


        
2条回答
  •  [愿得一人]
    2021-01-03 06:15

    try this, create an xml

    
    
      
    
    

    make a View and set above xml to its backgroung like:

     
       />
    

    now if you want to drop shadow to the left of your view, align this view to you views left, if you want shadow on bottom, align this view under you view ...hope you get it now

提交回复
热议问题