答案 0 :(得分:0)
您可以设置Horizontal RecyclerView,并根据视图的位置设置背景颜色。
LinearLayoutManager layoutManager
= new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);
RecyclerView myList = (RecyclerView) findViewById(R.id.my_recycler_view);
myList.setLayoutManager(layoutManager);