ui_Button1 = lv_btn_create(ui_Screen1);
lv_obj_set_width(ui_Button1, 100);
lv_obj_set_height(ui_Button1, 21);
lv_obj_set_x(ui_Button1, -1);
lv_obj_set_y(ui_Button1, -70);
lv_obj_set_align(ui_Button1, LV_ALIGN_CENTER);
lv_obj_add_flag(ui_Button1, LV_OBJ_FLAG_SCROLL_ON_FOCUS); /// Flags
lv_obj_clear_flag(ui_Button1, LV_OBJ_FLAG_SCROLLABLE); /// Flags
lv_obj_set_style_text_color(ui_Button1, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_opa(ui_Button1, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_letter_space(ui_Button1, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_line_space(ui_Button1, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_align(ui_Button1, LV_TEXT_ALIGN_AUTO, LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui_Button1, &lv_font_montserrat_10, LV_PART_MAIN | LV_STATE_DEFAULT);
lv_obj_add_event_cb(ui_Button1, ui_event_Button1, LV_EVENT_ALL, NULL);
lv_obj_add_event_cb(ui_Screen1, ui_event_Screen1, LV_EVENT_ALL, NULL);
/*创建组*/
lv_group_t *g=lv_group_create();
/*设置默认组*/
//lv_group_set_default(g);//全部组件
/*添加部件到组中*/
lv_group_add_obj(g , ui_Button1);
/*关联按键和组*/
lv_indev_set_group(indev_keypad , g);//"indev_keypad "需要在示例程序中引入为外部变量