Description
What MCU/Processor/Board and compiler are you using?
Allwinner D1s CPU
What LVGL version are you using?
V8.3.1
What do you want to achieve?
I am working on port lvgl 8.3.1 to this processor. Touch event like pressing are good. But the LV_EVENT_SCROLL_BEGIN will never fire. Really need help here, thanks~~
What have you tried so far?
(1) Checked indev point events with coordinates & state, all points are fluent when finger touch moves.
(2) The switch & slider demos works fine. But The tabview demo can not work with scrolling and even can not show tab content by clicking another tab button, it always show tab1 content .
(3) Tried to capture lv_event when scrolling, I can captured the gesture directions event correctly, but LV_EVENT_SCROLL_BEGIN will never fires when I tried to scroll the screen.
Code to reproduce
void lv_example_tabview_1(void)
{
/Create a Tab view object/
lv_obj_t * tabview;
tabview = lv_tabview_create(lv_scr_act(), LV_DIR_TOP, 50);
/*Add 3 tabs (the tabs are page (lv_page) and can be scrolled*/
lv_obj_t * tab1 = lv_tabview_add_tab(tabview, "Tab 1");
lv_obj_t * tab2 = lv_tabview_add_tab(tabview, "Tab 2");
lv_obj_t * tab3 = lv_tabview_add_tab(tabview, "Tab 3");
/*Add content to the tabs*/
lv_obj_t * label = lv_label_create(tab1);
lv_label_set_text(label, "This the first tab\n\n"
"If the content\n"
"of a tab\n"
"becomes too\n"
"longer\n"
"than the\n"
"container\n"
"then it\n"
"automatically\n"
"becomes\n"
"scrollable.\n"
"\n"
"\n"
"\n"
"Can you see it?");
label = lv_label_create(tab2);
lv_label_set_text(label, "Second tab");
label = lv_label_create(tab3);
lv_label_set_text(label, "Third tab");
lv_obj_scroll_to_view_recursive(label, LV_ANIM_ON);
}
Screenshot and/or video
1.zip (3.6 MB)