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

NumberPicker似乎上下Padding是不一样的。造成无法正常水平居中 #89

Closed
liyuhaolol opened this issue Aug 2, 2023 · 1 comment

Comments

@liyuhaolol
Copy link

WX20230802-114226@2x

  • 图里可以明确看出来NumberPicker的上下padding明显不一样,造成选择盘并不居中。
  • 图里也截出了代码,和预览,选择器的中间年份,无论如何也无法跟右侧的TextView里的文字对齐,我已经尽量查找所有np里的自定义属性,完全没有任何东西可以控制这个问题。
  • 所以我想知道,这算是BUG呢?还是我哪里属性没有找到?
@loper7
Copy link
Owner

loper7 commented Aug 2, 2023

不要固定numberpicker的高度,非要设置高度,可以用np_height

@loper7 loper7 closed this as completed Aug 2, 2023
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

2 participants