How to add cardview in layout xml in AndroidX

后端 未结 9 1147
臣服心动
臣服心动 2020-12-01 01:32

How to add cardview in layout xml in AndroidX

After upgraded to AndroidX



        
9条回答
  •  臣服心动
    2020-12-01 02:26

    The class has changed to:

    androidx.cardview.widget.CardView
    

    If you want to use the old class names, you need to add android:enableJetifier=true to your gradle.properties and use the appcompat dependencies instead.

提交回复
热议问题