+ 1
countdown timer on custom keyboard.
I made a keyboard so fine working with my own keys (Not normal keyboard, just 12 keys that enter a string when pressed). I got 5 keys label gets updated every second due to this countdown timer, that is, it updates the entire keyboard in seconds. So the problem is I am not able to use popup keys in my keyboard with timer on all 5 keys. Anyway solution🤔 code: https://code.sololearn.com/cLoZzb4253QT/?ref=app
1 Odpowiedź
+ 1
Found my silly mistake. 😅
The issue was keyboard updating it's whole layout while timer running. I just needed to stop that, simply by removing the keyboard setting option kv.setKeyboard(keyboard).
For updating the count down, just kv.invalidateAllKeys was enough.
Just found while my brain got hot😂😂