I have scrollable page
with long list and wish to remember it’s scroll position on destroy and restore it on recreate.
How to do that? Found only lv_page_scroll_ver
, but it’s for relative scroll. I need get/set absolute values.
I have scrollable page
with long list and wish to remember it’s scroll position on destroy and restore it on recreate.
How to do that? Found only lv_page_scroll_ver
, but it’s for relative scroll. I need get/set absolute values.
For get scroll position of page :
int16_t scroll_pos = lv_obj_get_y(lv_page_get_scrl(page ));
For set scroll position of page :
lv_obj_set_y(lv_page_get_scrl(page), scroll_pos );