我已经开发了代码,它显示来自服务器在gridview中的图像,但stageredgridview不起作用。 下面是我的代码StaggeredGridLayoutManager不能用于回收站查看
StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(2, LinearLayoutManager.VERTICAL);
CustomAdapter customAdapter = new CustomAdapter(MainActivity.this, personNames, personImages);
recyclerView.setLayoutManager(staggeredGridLayoutManager);
recyclerView.setAdapter(customAdapter);
发表您的代码.. –
请检查代码。 –
我有同样的问题。我检查了两次并解决了我自己。祝你好运 –