简体   繁体   English

为什么在 Jetpack Compose 中使用多个文本字段时键盘会滞后?

[英]Why does the keyboard lagged when using multiple Text Field in Jetpack Compose?

I recently decided to create an otp text field in jetpack compose, but when I use the next or back space button, the keyboard lagged *_*.我最近决定在 jetpack compose 中创建一个 otp 文本字段,但是当我使用 next 或 back space 按钮时,键盘滞后 *_*。 also i use sdk v31, kotlin v1.5.30 and compose v1.1.0-alpha03我也使用 sdk v31、kotlin v1.5.30 和 compose v1.1.0-alpha03

Show Preview 显示预览

Code 代码

Hi @Ghasam there is an open bug for the same issue https://issuetracker.google.com/issues/187746439 , but doesn't seems to have a fix date.嗨@Ghasam 有一个针对同一问题https://issuetracker.google.com/issues/187746439的开放错误,但似乎没有修复日期。 I have created an article explaining a possible workaround for the issue, you can use the same approach here as well, hope it helps.我创建了一篇文章,解释了该问题的可能解决方法,您也可以在此处使用相同的方法,希望对您有所帮助。

https://chetangupta.net/keyboard-switch-bug/ https://chetangupta.net/keyboard-switch-bug/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM