“常见 Android X Support 包名转换”的版本间差异

来自Silica Library | 間奏時光
跳到导航 跳到搜索
第7行: 第7行:
|import androidx.annotation.NonNull;
|import androidx.annotation.NonNull;
|import android.support.annotation.NonNull;
|import android.support.annotation.NonNull;
|-
|import androidx.annotation.DrawableRes;
|import android.support.annotation.DrawableRes;
|-
|-
|import androidx.annotation.Nullable;
|import androidx.annotation.Nullable;

2022年1月12日 (三) 07:15的版本

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 看是否又遗漏。