We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
现在好像只有线性的
public XRecyclerView noDivider() { setItemAnimator(new DefaultItemAnimator()); setHasFixedSize(true); return this; } public XRecyclerView horizontalDivider(@ColorRes int colorRes, @DimenRes int dimenRes) { setItemAnimator(new DefaultItemAnimator()); setHasFixedSize(true); addItemDecoration(new HorizontalDividerItemDecoration.Builder(getContext()) .colorResId(colorRes) .size(getContext().getResources().getDimensionPixelSize(dimenRes)) .build() ); return this; } public XRecyclerView verticalDivider(@ColorRes int colorRes, @DimenRes int dimenRes) { setItemAnimator(new DefaultItemAnimator()); setHasFixedSize(true); addItemDecoration(new VerticalDividerItemDecoration.Builder(getContext()) .colorResId(colorRes) .size(getContext().getResources().getDimensionPixelSize(dimenRes)) .build() ); return this; }
The text was updated successfully, but these errors were encountered:
感谢反馈 @Sum41forever
Sorry, something went wrong.
No branches or pull requests
现在好像只有线性的
The text was updated successfully, but these errors were encountered: