top | item 28785488

(no title)

konstmonst | 4 years ago

I really don't like internal memory management in such libraries. It should not be btn = lv.btn(lv.scr_act())

but

Button bt; lv.init_button(&bt)

so that I can decide where to keep the memory of button

discuss

order

kevin_thibedeau|4 years ago

That is a convenience function. You can manage pointers to multiple screens yourself if desired. An LVGL "screen" is roughly equivalent to an Android activity. A complex UI may need to switch between multiple screens and it is often easier to just ignore lv_scr_act().