-
Notifications
You must be signed in to change notification settings - Fork 595
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
文字测量问题 #64
Comments
我也遇到这样的问题。请问有解决方法吗? |
给下布局和代码 |
代码 constraintlayout---->Linearlayout--->CountdownView java 代码直接start 可能主要是因为有app:isConvertDaysToHours="true" |
需要加上下面这个逻辑判断,就可以了,因为有可能第一次isDayLargeNinetyNine被置为true,第二次就跑不进(!isDayLargeNinetyNine && mDay > 99)这个if里面了 |
@Selina592732122 这样会不会开销很大? 毕竟只需要relayout一次就好了,这样次次都relayout. |
@zhuzhushang 不用加relayout了,看了下他原来代码就有,只是条件进不去, 修改下貌似就可以了 |
大佬们最终怎么解决的? |
将天数转换成小时,小时为3位数时,显示时分秒的倒计时,小时数会紧贴后面的冒号,效果如下:
111: 23 : 00
The text was updated successfully, but these errors were encountered: