请问老师,为什么要单独创建一个Activity来做瀑布流
在oncreate里mAdapter2 = new StaggeredAdapter(this, mDatas);
然后在菜单里设置mRecyclerView.setAdapter(mAdapter2);
mRecyclerView.setLayoutManager(new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.VERTICAL));
这样不也可以吗?
在oncreate里mAdapter2 = new StaggeredAdapter(this, mDatas);
然后在菜单里设置mRecyclerView.setAdapter(mAdapter2);
mRecyclerView.setLayoutManager(new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.VERTICAL));
这样不也可以吗?
2015-10-01
举报