I am using the card view to do some view with radius. I know the max radius is half of the height. So I implemented a ViewTreeObserver.OnGlobalLayoutListener()
ViewTreeObserver.OnGlobalLayoutListener()