android 项目升级 androidx - 修改包名(补充)
import androidx.core.app.Fragment;
import androidx.fragment.app.Fragment;
import androidx.core.widget.DrawerLayout;
import androidx.drawerlayout.widget.DrawerLayout;
android.support.design.widget.AppBarLayout
com.google.android.material.appbar.AppBarLayout
android.support.design.widget.CoordinatorLayout
androidx.coordinatorlayout.widget.CoordinatorLayout
android.support.v7.widget.Toolbar
androidx.appcompat.widget.Toolbar
android.support.v4.view.ViewPager
androidx.viewpager.widget.ViewPager
androidx.appcompat.widget.RecyclerView
androidx.recyclerview.widget.RecyclerView
androidx.core.view.ViewPager
androidx.viewpager.widget.ViewPager
import androidx.core.app.FragmentPagerAdapter;
import androidx.fragment.app.FragmentPagerAdapter;
import androidx.core.app.FragmentActivity;
import androidx.fragment.app.FragmentActivity;
import androidx.core.app.FragmentStatePagerAdapter;
import androidx.fragment.app.FragmentStatePagerAdapter;
import android.support.design.widget.Snackbar;
import com.google.android.material.snackbar.Snackbar;
import android.support.multidex.MultiDex;
import androidx.multidex.MultiDex;
import android.support.multidex.MultiDexApplication;
import androidx.multidex.MultiDexApplication;
import androidx.appcompat.util.DiffUtil;
import androidx.recyclerview.widget.DiffUtil;
import androidx.appcompat.widget.SimpleItemAnimator;
import android.support.annotation.
import androidx.appcompat.widget.SnapHelper;
import androidx.recyclerview.widget.SnapHelper;
import androidx.appcompat.widget.LinearSmoothScroller;
import androidx.recyclerview.widget.LinearSmoothScroller;
import androidx.appcompat.widget.OrientationHelper;
import androidx.recyclerview.widget.OrientationHelper;
import androidx.appcompat.widget.LinearSnapHelper;
import androidx.recyclerview.widget.LinearSnapHelper;
import androidx.core.widget.ViewDragHelper;
import androidx.customview.widget.ViewDragHelper;
import androidx.core.util.SparseArrayCompat;
import androidx.collection.SparseArrayCompat;
androidx.cardview.widget.CardView
androidx.appcompat.widget.CardView
android.support.v7.widget.AppCompatCheckBox
androidx.appcompat.widget.AppCompatCheckBox
android.support.v7.widget.RecyclerView
androidx.recyclerview.widget.RecyclerView
import android.arch.lifecycle.LifecycleObserver;
import androidx.lifecycle.LifecycleObserver;
import android.arch.lifecycle.LifecycleObserver;
import androidx.lifecycle.LifecycleObserver;
android.support.v7.widget.LinearLayoutCompat
androidx.appcompat.widget.LinearLayoutCompat
import androidx.core.util.LruCache;
import android.util.LruCache;
import androidx.appcompat.widget.helper.ItemTouchHelper;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.appcompat.widget.SimpleItemAnimator;
import androidx.recyclerview.widget.SimpleItemAnimator;
import android.support.design.widget.CollapsingToolbarLayout;
import com.google.android.material.appbar.CollapsingToolbarLayout;
import androidx.core.widget.SwipeRefreshLayout;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import androidx.appcompat.widget.PagerSnapHelper;
import androidx.recyclerview.widget.PagerSnapHelper;
import android.arch.lifecycle.Observer;
import androidx.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProviders;
import androidx.lifecycle.ViewModelProviders;
import android.arch.lifecycle.ViewModel;
import androidx.lifecycle.ViewModel;
import android.arch.lifecycle.LiveData;
import androidx.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import androidx.lifecycle.MutableLiveData;
androidx.constraintlayout.ConstraintLayout
androidx.constraintlayout.widget.ConstraintLayout
android.support.design.widget.TabLayout
com.google.android.material.tabs.TabLayout
本文地址:https://blog.csdn.net/u013023167/article/details/108586535
上一篇: 2020-09-13