I got a problem i am trying to give card corner ra...
# anko
y
I got a problem i am trying to give card corner radius in the card view here is my code.The card is still rectangle
Copy code
override fun createView(ui: AnkoContext<AppCompatActivity>): View {
        with(ui) {

            frameLayout {
                linearLayout {
                    cardView {
                        id = R.id.login_card
                        gravity = Gravity.CENTER
                        cardElevation = dip(8).toFloat()
                        radius = dip(10).toFloat()
                        backgroundColor = ContextCompat.getColor(context, R.color.cardview_light_background)
                    }.lparams(width = dip(300), height = dip(300))

                }.lparams(width = matchParent, height = matchParent)

            }

        }

        return ui.view
    }