常见 Android X Support 包名转换
跳到导航
跳到搜索
X | Support |
---|---|
import androidx.annotation.NonNull; | import android.support.annotation.NonNull; |
import androidx.annotation.DrawableRes; | import android.support.annotation.DrawableRes; |
import androidx.annotation.Nullable; | import android.support.annotation.Nullable; |
import androidx.core.app.ActivityCompat; | import android.support.v4.app.ActivityCompat; |
import androidx.fragment.app.FragmentActivity; | import android.support.v4.app.FragmentActivity; |
import androidx.constraintlayout.widget.ConstraintLayout; | import android.support.constraint.ConstraintLayout; |
import androidx.annotation.MainThread; | import android.support.annotation.MainThread; |
import androidx.annotation.RequiresApi; | import android.support.annotation.RequiresApi; |
import androidx.core.content.ContextCompat; | import android.support.v4.content.ContextCompat; |
androidx.constraintlayout.widget.ConstraintLayout | android.support.constraint.ConstraintLayout |
androidx.recyclerview.widget.RecyclerView | android.support.v7.widget.RecyclerView |
最后全局搜寻 androidx
看是否又遗漏。