導致部分原有的 UI 元件失效
在此紀錄有異動的項目
官方說明列表有很清楚的對照表
以下為之前遇到的在此紀錄
import android.support.v4.app.Fragment;
To
import androidx.fragment.app.Fragment;
---------------------------------------
To
import androidx.annotation.Nullable;
To
---------------------------------------
import android.support.v7.app.AppCompatActivity;
To
import androidx.appcompat.app.AppCompatActivity;
---------------------------------------
androidx.constraintlayout.ConstraintLayout
To
androidx.constraintlayout.widget.ConstraintLayout
---------------------------------------
android.support.constraint.ConstraintLayout
To
android.coordinatorlayout.widget.ConstraintLayout
---------------------------------------
android.support.v7.widget.CardView
To
androidx.cardview.widget.CardView
參考資料:Migrating to AndroidX
androidx.constraintlayout.ConstraintLayout
To
androidx.constraintlayout.widget.ConstraintLayout
---------------------------------------
android.support.constraint.ConstraintLayout
To
android.coordinatorlayout.widget.ConstraintLayout
---------------------------------------
android.support.v7.widget.CardView
To
androidx.cardview.widget.CardView
參考資料:Migrating to AndroidX