最佳答案
尝试并检查更换线路
postLine.setLayoutManager(new GridLayoutManager(getActivity(),2));
与
postLine.setLayoutManager(new StaggeredGridLayoutManager(2,StaggeredGridLayoutManager.VERTICAL));
关于java - RecyclerView GridLayoutManager 和动态行高,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44332181/