Description
How to change the height of btn in button matrix?
What MCU/Processor/Board and compiler are you using?
What LVGL version are you using?
V8.0
What do you want to achieve?
change one of button’s height in button matrix.
What have you tried so far?
search in forum
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The code block(s) should be formatted like:
static const char * btnm_map[] = {"7","8", "9", "\n",
"4", "5", "6", "\n",
"1", "2", "3", "\n",
"0", ".", ""};
btn_matrix_num = lv_btnmatrix_create(m_lvObj);
lv_btnmatrix_set_map(btn_matrix_num, btnm_map);
lv_obj_set_pos(btn_matrix_num, 30, 80);
lv_obj_set_size(btn_matrix_num, 300, 300);
lv_obj_set_style_radius(btn_matrix_num, 0, LV_PART_ITEMS);
lv_obj_set_style_pad_gap(btn_matrix_num, 4, 0);
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.