How to create a effect of focus?

  • May I ask how I should achieve this effect of focus?

By the way, this box selected part, I should use what control good?

Hi @zsjlovestudy ,

To create a focus effect, you define styles that target the focused state (LV_STATE_FOCUSED) using a style selector, or set style properties directly on an object for that state

Please, check this example : lvgl/examples/styles/lv_example_style_outline.c at master · lvgl/lvgl · GitHub