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
Asked
Active
Viewed 382 times
1
-
[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 Answers
0
CardView cardView = (CardView)findViewById(R.id.your_id);
.
.
float radius = cardView.getRadius();

Tiko
- 851
- 8
- 15