How to use loading


Hi Team,
i want to use loading from one screen to other screen while redirecting.
i have login screen when i click on login button i am checking user login info in database and it take 2-3 seconds to get response.
once i got the response from database then i am redirecting to other screen.
For that 2-3 seconds i want to show loading in login screen and i got the response i want to hide the loading and redirect to other screen.

What MCU/Processor/Board and compiler are you using?


What LVGL version are you using?

Version 7

What do you want to achieve?

What have you tried so far?

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

1 Like

Take a look at the spinner widget:

1 Like

Thank You kisvegabor,
This is what i need.
But in my case i want to show/hide spinner based on the response coming from server.
so how to hide/show the spinner.

lv_obj_set_hidden(spinner, true/false);