I am using Carbon's framelayout as a container for my custom widget which has a corner radius. I am setting same corner radius using carbonLinearLayout.setCornerRadius() to carbon's framelayout as well to make the shadow rounded but it just makes the carbon framelayout invisible. Its shows and works fine on API level => 29 but below 29, it is invisible but clickable. It also shows fine in layout inspector as well. Don't know whats happening.