Unable to get exact circle shape when using card view

前端 未结 11 1875
旧时难觅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 10:56

    I tried your code and found out that the Cards were less round with respect to the increase in the card elevation value.Try setting it to zero and this at least makes it look better.

    card_view:cardElevation="0dp";
    

    But a probably better option would be to use the FloatingActionButton for the round button

    
    

提交回复
热议问题