android GridLayoutManager StaggeredGridLayoutManager设置间距、占满一行及使用StaggeredGridLayoutManager时遇到的一些问题

ViewGroup.LayoutParams lp = holder.itemView.getLayoutParams();
            if (lp != null && lp instanceof StaggeredGridLayoutManager.LayoutParams) {
                StaggeredGridLayoutManager.LayoutParams p =
                        (StaggeredGridLayoutManager.LayoutParams) lp;
                p.setFullSpan(true);
            }

向大佬学习android GridLayoutManager StaggeredGridLayoutManager设置间距、占满一行及使用StaggeredGridLayoutManager时遇到的一些问题

你可能感兴趣的:(android GridLayoutManager StaggeredGridLayoutManager设置间距、占满一行及使用StaggeredGridLayoutManager时遇到的一些问题)