Unable to get exact circle shape when using card view

前端 未结 11 1891
旧时难觅i
旧时难觅i 2020-12-25 10:12

I\'m using card view for floating action button in android material design. I\'m using following code for get the circle



        
11条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-25 11:07

    To get a perfect circle shape using a card view, corner radius should be 1/2 of width or height (taking into consideration that it is a square). also, I have noticed that you are using card_view params, don't.

    
    

提交回复
热议问题