Skip to content
New issue

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

字母标题不居中 #2

Open
imhappyok opened this issue Jan 13, 2022 · 1 comment
Open

字母标题不居中 #2

imhappyok opened this issue Jan 13, 2022 · 1 comment

Comments

@imhappyok
Copy link

字母标题不居中

@imhappyok
Copy link
Author

解决方式:
下载源码修改CustomItemDecoration类里面的82行和127行分别为
float y = view.getTop() - params.topMargin - (mTitleHeight - textRect.height()) / 2;
float y = parent.getPaddingTop() + mTitleHeight - (mTitleHeight / 2 - textRect.height() / 2);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant