1

How do I retrieve the corner radius value of a view ( a cardview for example ) programmatically ? I am going to use that value in a transition animation

Joy Hard
  • 319
  • 5
  • 21
  • [Here](http://stackoverflow.com/questions/1509547/giving-uiview-rounded-corners) is the answer for a view. – Joy Hard Mar 11 '17 at 12:30

1 Answers1

0
CardView cardView = (CardView)findViewById(R.id.your_id);
.
.
float radius = cardView.getRadius();
Tiko
  • 851
  • 8
  • 15