Fixed bug:Option screen ui error about next page.

This commit is contained in:
xiaojiazhu 2023-12-25 11:39:33 +08:00
parent e8be05aac6
commit 14c0659dfb

View File

@ -398,6 +398,10 @@ static void LV_MenuCommonOption_UpdateContent(TM_MENU *pMenu)
itemIconId = LV_PLUGIN_IMG_ID_SF_LIST_SELECTED_NEXT2;//black > √ itemIconId = LV_PLUGIN_IMG_ID_SF_LIST_SELECTED_NEXT2;//black > √
lv_obj_set_pos(image_option2_scr_uiflowmenucommonoption, 259, 0); lv_obj_set_pos(image_option2_scr_uiflowmenucommonoption, 259, 0);
} }
else if (i==0){
itemIconId = LV_PLUGIN_IMG_ID_SF_LIST_SELECTED;//√
lv_obj_set_pos(image_option1_scr_uiflowmenucommonoption, 272, 0);
}
else{ else{
printf("[LV_MenuCommonOption_UpdateContent]first init √\n"); printf("[LV_MenuCommonOption_UpdateContent]first init √\n");
itemIconId = LV_PLUGIN_IMG_ID_SF_LIST_SELECTED;//√ itemIconId = LV_PLUGIN_IMG_ID_SF_LIST_SELECTED;//√
@ -412,6 +416,10 @@ static void LV_MenuCommonOption_UpdateContent(TM_MENU *pMenu)
itemIconId = LV_PLUGIN_IMG_ID_SF_LIST_SELECTED_NEXT2;//black > √ itemIconId = LV_PLUGIN_IMG_ID_SF_LIST_SELECTED_NEXT2;//black > √
lv_obj_set_pos(image_option2_scr_uiflowmenucommonoption, 259, 0); lv_obj_set_pos(image_option2_scr_uiflowmenucommonoption, 259, 0);
} }
else if (i == 0){
itemIconId = LV_PLUGIN_IMG_ID_SF_LIST_SELECTED;//√
lv_obj_set_pos(image_option1_scr_uiflowmenucommonoption, 272, 0);
}
else if (i == 2) else if (i == 2)
{ {
printf("[LV_MenuCommonOption_UpdateContent]first init IDM_SEND_TYPE black > √\n"); printf("[LV_MenuCommonOption_UpdateContent]first init IDM_SEND_TYPE black > √\n");
@ -433,6 +441,9 @@ static void LV_MenuCommonOption_UpdateContent(TM_MENU *pMenu)
{ {
lv_obj_set_pos(image_option2_scr_uiflowmenucommonoption, 272, 0); lv_obj_set_pos(image_option2_scr_uiflowmenucommonoption, 272, 0);
} }
else if (i == 0){
lv_obj_set_pos(image_option1_scr_uiflowmenucommonoption, 272, 0);
}
else if (i == 2) else if (i == 2)
{ {
lv_obj_set_pos(image_option3_scr_uiflowmenucommonoption, 272, 0); lv_obj_set_pos(image_option3_scr_uiflowmenucommonoption, 272, 0);
@ -554,6 +565,12 @@ static void LV_MenuCommonOption_UpdateContent(TM_MENU *pMenu)
{ {
switch(i) switch(i)
{ {
case 0:
{
itemIconId = LV_PLUGIN_IMG_ID_SF_LIST_SELECTED;//√
lv_obj_set_pos(image_option1_scr_uiflowmenucommonoption, 272, 0);
break;
}
case 1: case 1:
{ {
lv_obj_set_pos(image_option2_scr_uiflowmenucommonoption, 259, 0); lv_obj_set_pos(image_option2_scr_uiflowmenucommonoption, 259, 0);
@ -590,6 +607,12 @@ static void LV_MenuCommonOption_UpdateContent(TM_MENU *pMenu)
else{ else{
switch(i) switch(i)
{ {
case 0:
{
itemIconId = LV_PLUGIN_IMG_ID_SF_LIST_SELECTED;//√
lv_obj_set_pos(image_option1_scr_uiflowmenucommonoption, 272, 0);
break;
}
case 1: case 1:
{ {
printf("[LV_MenuCommonOption_UpdateContent]set 1 option \n"); printf("[LV_MenuCommonOption_UpdateContent]set 1 option \n");