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

选中的Item 效果没有居中 #94

Open
AnyLifeZLB opened this issue Jan 24, 2024 · 3 comments
Open

选中的Item 效果没有居中 #94

AnyLifeZLB opened this issue Jan 24, 2024 · 3 comments

Comments

@AnyLifeZLB
Copy link

AnyLifeZLB commented Jan 24, 2024

image
肉眼看应该都算明显,在大屏设备iPad 更加明显

image

@liouvilles
Copy link

有修复吗

@KerongWong
Copy link

在NumberPicker的onLayout中有个计算SelectedText中心的代码
mSelectedTextCenterY = mSelectedText.getY() + mSelectedText.getMeasuredHeight() / 2f - 5f;
在计算的时候添加了5个单位的偏移导致的。

@loper7
Copy link
Owner

loper7 commented Nov 14, 2024

最近工作繁重,无暇维护,有空的小伙伴可以修改提PR,一起拥抱开源🙏

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

4 participants