为什么我在按钮上层放一个图片,点击图片触发不到点击按钮,但是官方提供的空调例程就可以,它也是在按钮上放的一个图片,按到图片也能触发点击按钮,也没添加事件。官方例程能点,自己创建得就点不了
Hi @RayC02,
In the aricon demo, the following code is added in custom.c to clear clickable flag for image, so the click event is triggered for button under image.
lv_obj_clear_flag(ui->screen_img_1, LV_OBJ_FLAG_CLICKABLE);
You can use the same method for image widget or enable click event for image widget directly.
Best Regards,
Zhenhua