private void setUpRecyclerView() {
recyclerView.setHasFixedSize(true);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
recyclerViewAdapter = new StoryAdapter(MainActivity.this, getData());
recyclerView.setAdapter(recyclerViewAdapter);
recyclerViewAdapter.notifyDataSetChanged();
}
private ArrayList<Object> getData() {
好人帮我实现gridlayoutmanager吗?
有1张照片就可以了
https://i.imgur.com/d9sPssi.png
2张照片,所以我想离开某人可以帮助我吗?
https://i.imgur.com/VyIZwPe.png enter image description here
我在注释中留下了代码。
答案 0 :(得分:0)
本文介绍了Grid和List布局之间的RecyclerView动画过渡。