[solved]Is there a way let children's size in proportion on a container?

use lv_obj_get_width() and lv_obj_get_height() then calculate by myself?

It’s possible you could use LV_LAYOUT_PRETTY with the lv_cont object. However, I’ve never done it so I can’t tell you exactly how you need to style it.