feat(style) add transform_x/y
This commit is contained in:
@@ -24,7 +24,7 @@ void lv_example_flex_1(void)
|
||||
lv_obj_t * label;
|
||||
|
||||
/*Add items to the row*/
|
||||
obj= lv_obj_create(cont_row);
|
||||
obj= lv_btn_create(cont_row);
|
||||
lv_obj_set_size(obj, 100, LV_SIZE_PCT(100));
|
||||
|
||||
label = lv_label_create(obj);
|
||||
@@ -32,7 +32,7 @@ void lv_example_flex_1(void)
|
||||
lv_obj_center(label);
|
||||
|
||||
/*Add items to the column*/
|
||||
obj = lv_obj_create(cont_col);
|
||||
obj = lv_btn_create(cont_col);
|
||||
lv_obj_set_size(obj, LV_SIZE_PCT(100), LV_SIZE_CONTENT);
|
||||
|
||||
label = lv_label_create(obj);
|
||||
|
||||
@@ -25,7 +25,7 @@ void lv_example_grid_1(void)
|
||||
uint8_t col = i % 3;
|
||||
uint8_t row = i / 3;
|
||||
|
||||
obj = lv_obj_create(cont);
|
||||
obj = lv_btn_create(cont);
|
||||
/*Stretch the cell horizontally and vertically too
|
||||
*Set span to 1 to make the cell 1 column/row sized*/
|
||||
lv_obj_set_grid_cell(obj, LV_GRID_STRETCH, col, 1,
|
||||
|
||||
Reference in New Issue
Block a user