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

有些设备会显示一条竖线 #46

Open
liao10108180 opened this issue Jan 4, 2022 · 11 comments
Open

有些设备会显示一条竖线 #46

liao10108180 opened this issue Jan 4, 2022 · 11 comments

Comments

@liao10108180
Copy link

有些设备上选择日期,年月日之间会显示一条竖线,有些就在月和日之间显示竖线,有些没有显示,这是为什么呢?有什么办法可以隐藏竖线吗?

@loper7
Copy link
Owner

loper7 commented Jan 4, 2022

有些设备上选择日期,年月日之间会显示一条竖线,有些就在月和日之间显示竖线,有些没有显示,这是为什么呢?有什么办法可以隐藏竖线吗?

可以截图看看吗

@liao10108180
Copy link
Author

微信图片_20220104150528

@liao10108180
Copy link
Author

用的DateTimePicker控件

@loper7
Copy link
Owner

loper7 commented Jan 4, 2022

用的DateTimePicker控件

有点奇怪 你可以自己写xml试试 NumberPicker 不会绘制竖线
就按照 这里 所说自定义布局样式来试试

@joker-fu
Copy link

竖线+1

@joker-fu
Copy link

image

@loper7
Copy link
Owner

loper7 commented Jan 28, 2022

平板上确实有这个问题 下个版本处理

@joker-fu
Copy link

你好,不是平板,就是普通手机。我用的是一款红米,具体型号记不太清了(没在身边)

@laishere
Copy link

虚拟机上也有,Pixel 2 API 28,简单解决办法,自定义layout,NumberPicker设置background颜色即消失。

@loper7
Copy link
Owner

loper7 commented Mar 3, 2022

参考此 issue ,目前可通过给NumberPicker设置背景颜色处理,有小伙伴有解决方案欢迎pr

@TSsimeon
Copy link

当设置为透明色的时候还是会有一条竖线,自定义布局设置NumberPicker xml 属性 app:np_fadingEdgeEnabled="false"

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

5 participants