lv_pct(80), 100); lv_scale_set_mode(scale, LV_SCALE_MODE_HORIZONTAL_BOTTOM); lv_obj_center(scale); lv_scale_set_label_show(scale, true); lv_
void lv_obj_scroll_to_view_recursive(lv_obj_t * obj, lv_anim_enable_t anim_en); /** * Tell whether an object is being scrolled or not at this moment * @param obj pointer to an object * @return true: `obj` is being scrolled */ bool lv_obj_is_scrolling(const lv_obj_...
lv_obj_scroll_to_view_recursive(comp->instance, LV_ANIM_ON); lv_obj_add_event_cb(comp->keyboard, &Textarea::hideKeyboard, LV_EVENT_CANCEL, comp); lv_obj_add_event_cb(comp->keyboard, &Textarea::hideKeyboard, LV_EVENT_READY, comp); lv_obj_add_event(comp->keyboard, &Textarea::hide...
基于上面模式对话框来改进代码,非常简单,我们只要在 calendar_event_cb 和 birthday_event_cb 函数中稍作修改即可。重点就是我们在进入模式对话框的时候,因为设置日期的对话框是在 lv_layer_top 层上创建的,所以 lv_layer_top 层也就位于设置日期对话框之下了,所以我们只要让用户点击位于对话框之下的 lv_layer_...
(currentButton); lv_obj_scroll_to_view(currentButton, LV_ANIM_ON); } } static void event_handler_up(lv_event_t * e) { lv_event_code_t code = lv_event_get_code(e); if((code == LV_EVENT_CLICKED) || (code == LV_EVENT_LONG_PRESSED_REPEAT)) { if(currentButton == NULL) ...
lv_chinese_ime是在 lv_keyboard 的基础上编写的一个自定义部件(创建接口为:lv_chinese_ime_create(lv_obj_t *parent));),它和lv_keyboard没有什么区别,只是增加了支持中文输入法(拼音)的功能。 所以我们将其称为:支持中文输入法的LVGL键盘(lv_keyboard)部件增强插件。
lv_label_set_text_fmt(label, "Item %"LV_PRIu32, btn_cnt); lv_menu_set_load_page_event(menu, cont, sub_page); lv_obj_scroll_to_view_recursive(cont, LV_ANIM_ON); 0 comments on commit 1e3ca25 Please sign in to comment. Footer...
Elastic scroll Snapping Scroll one Scroll on focus Scrolling Programmatically Self Size Examples Nested scrolling Snapping Floating button Styling the scrollbars Right to left scrolling Translate on scroll Infinite scrolling API Widgets Animation Image (lv_animimg) Overview Parts and Styles Usage Image sou...
Embedded graphics library to create beautiful UIs for any MCU, MPU and display type. - lvgl/src/core/lv_obj_style.c at 09c12d0f9c1e09abec3e58127c9c67cfb958782f · lvgl/lvgl
Embedded graphics library to create beautiful UIs for any MCU, MPU and display type. - lvgl/src/core/lv_obj_style.c at cc6581ae0320ae51f341519f17f770714b396cd1 · lvgl/lvgl