countdown timer on custom keyboard. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

4th Feb 2018, 10:43 AM
speCtre
speCtre - avatar
1 Answer
+ 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😂😂
6th Feb 2018, 6:42 PM
speCtre
speCtre - avatar