File->project structure->Dependencies:

点击All Dependencies处的加号,选择Library Dependency:

Android Studio 3.5+ 使用androidx的recyclerView

在step1处输入recyclerView,点击search,搜索到以后,选中,点击ok即可

二 在layout中加入

<android.support.v7.widget.RecyclerView
android:id="@+id/RecyclerViewId"
android:layout_width="match_parent"
android:layout_height="match_parent"/>

相关文章:

  • 2021-08-28
  • 2021-12-05
  • 2022-01-16
  • 2022-12-23
  • 2021-11-03
猜你喜欢
  • 2021-04-12
  • 2021-05-29
  • 2022-12-23
  • 2021-09-24
  • 2021-05-25
  • 2021-08-09
相关资源
相似解决方案