feat(dropdown): lv_dropdown_set/get_selected_highlight + minor fixes

This commit is contained in:
Gabor Kiss-Vamosi
2021-02-27 20:34:08 +01:00
parent b1677205b0
commit 347680a3c0
9 changed files with 120 additions and 80 deletions

View File

@@ -4,9 +4,11 @@
static void event_handler(lv_obj_t * obj, lv_event_t event)
{
if(event == LV_EVENT_VALUE_CHANGED) {
#if LV_USE_LOG /*To avoid warnings if LV_LOG_USER is empty*/
char buf[32];
lv_dropdown_get_selected_str(obj, buf, sizeof(buf));
LV_LOG_USER("Option: %s\n", buf);
LV_LOG_USER("Option: %s", buf);
#endif
}
}