How to achieve the page pull-down refresh effect?

You can add an event to the list container listening to LV_EVENT_SCROLL. With lv_obj_get_scroll_top you can see the current scroll position to set up an animation or an arc or so accordingly.

The “arc” should have LV_OBJ_FLAG_FLOATING | LV_OBJ_FLAG_IGNORE_LAYOUT to be sure it’s not scrolled with the list (floating) and not positioned by the layout of the list (ignore layout).

1 Like

that is great, can’t help but sigh, lvgl is really broad and profound, I just learned the fur of it.

1 Like