How to set the surface view camera background with corner

前端 未结 3 776
执念已碎
执念已碎 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:33

    Hi have a look at this code.

    
    
        
            
                
                
                
            
        
    
    

    set this as like below in your surface view.

    android:background="@layout/rounded"
    

提交回复
热议问题