android:scrollbars=“vertical”/>
- 编写每一项的布局文件
<LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”
android:orientation=“vertical”
android:layout_width=“match_parent”
android:layout_height=“match_parent”>
<TextView
android:id="@+id/tv_item_text"
android:layout_width=“match_parent”
android:layout_height=“100dp”/>
第二步:绑定 LayoutManager 和 Adapter
//第一步:获取 RecyclerView 控件
rv_my_view = findViewById(R.id.rv_my_view);
//第二步:绑定 layoutManager
LinearLayoutManager layoutManager = new LinearLayoutManager(this);
layoutManager.setOrientation(LinearLayoutManager.HORIZONTAL);
rv_my_view.setLayoutMana