|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Mr. Developer
![]() Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
|
![]()
Hi wonderful guys over mobileread, I recently started tinkering the source code of KOReader on my machine and I came accross this beautiful loading animation (I really like the animation of the three dots at the bottom of the screen.)
![]() Is anyone aware which script of KOReader's source code is triggering this. I captured that animation while running KOReader on android. The gif is attached below: |
![]() |
![]() |
![]() |
#2 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,390
Karma: 2200169
Join Date: Apr 2014
Device: BQ Cervantes 4
|
That's a standard android dialog without a frame.
It is in https://github.com/koreader/android-...s.kt#L160-L187 Used while uncompressing APK assets in device's storage. You should see the dots animation once per version. You can't repurpose the dialog for anything non-android. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Mr. Developer
![]() Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 | |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,390
Karma: 2200169
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
If you want to build something that does some background job while displaying the animation that's harder. A lua state/vm is mostly single threaded. The best you can do is some sort of cooperative multitasking, in the form of lua coroutines |
|
![]() |
![]() |
![]() |
#5 | |
Mr. Developer
![]() Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,390
Karma: 2200169
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
You're confusing the hability to schedule tasks to run in the future with multithreading. They are not the same. Any tasks scheduled with any of the UIManager facilities (see doc in https://koreader.rocks/doc/modules/ui.uimanager.html) will be executed sequentially on the UIThread, so if one of such tasks takes hours to complete the UI will be blocked for that time too. |
|
![]() |
![]() |
![]() |
#7 | |
Mr. Developer
![]() Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
|
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
developer, ereader, koreader, source code |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can KOReader read any html5, javascript and css code? | avnermoshkovitz | KOReader | 1 | 07-12-2021 06:55 AM |
Find OTA code on reboot | qualipso | Kindle Developer's Corner | 2 | 04-11-2021 05:44 AM |
Display Code and animation | curiousgeorge | ePub | 5 | 08-09-2012 10:30 AM |
Find Dialog and XHTML Code View | jondolar | Sigil | 0 | 10-18-2011 10:16 AM |
PRS-600 Where can I find the Linux source code? | Xaphiosis | Sony Reader | 8 | 04-17-2010 11:13 AM |