because you have not set LinearLayoutManager to RecyclerView.

for example:

    mRecyclerView = (RecyclerView) findViewById(R.id.recyclerView);
    LinearLayoutManager layoutManager = new LinearLayoutManager(context);
    mRecyclerView.setLayoutManager(layoutManager);
    mRecyclerView.setAdapter(new CustomAdapter());

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
猜你喜欢
  • 2021-11-21
  • 2022-12-23
  • 2021-06-04
  • 2021-12-11
  • 2022-12-23
  • 2021-11-10
相关资源
相似解决方案