How to set the surface view camera background with corner

前端 未结 3 777
执念已碎
执念已碎 2021-01-14 13:30

My app uses a camera surface view layout with a size of 150 X 150. I need to show the surface corner is arc type. how to set the corner in camera.



        
3条回答
  •  广开言路
    2021-01-14 13:48

    After more search i try to write code with cardView it worked for me .

    Add dependencies :

    implementation 'androidx.appcompat:appcompat:1.0.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    

    Add code to xml :

     
    
                
            
    

提交回复
热议问题