海奇HC-RTOS平台E100-问题点
- ■ btn 没有添加到group中 ,怎么实现的事件的
- ■ 屏幕是1280*720, UI是1024*600,是否修改UI
- ■ hc15xx-db-e100-v10-hcdemo.dtb 找不到
- ■ 触摸屏驱动 能否给个实例
- ■ 按键驱动
- ■ __initcall(projector_auto_start)
- ■ source insigt4.0 #ifdef 代码怎么自动灰显示问题
- ■ 补丁是打在运行程序,还是代码中。
- ■ Label align policy 只有左右对齐,没有上下居中`在这里插入代码片
- ■ 圆角问题,不能只设置一个角为圆角?
- ■
- ■
- ■
■ btn 没有添加到group中 ,怎么实现的事件的
电影, 音乐, 照片, 电子书,一行中的
ui_mainpage
static int create_subobj_in_cont(lv_obj_t* p)
{for(int i = 0; i <SCR_MAINICON_NUM;i++){lv_obj_t* obj=lv_obj_create(p);lv_obj_set_size(obj,LV_PCT(20),LV_PCT(53));lv_obj_clear_flag(obj, LV_OBJ_FLAG_SCROLLABLE); /// Flagslv_obj_set_style_radius(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);lv_obj_set_style_bg_color(obj, lv_color_hex(0x031FFF), LV_PART_MAIN | LV_STATE_DEFAULT);lv_obj_set_style_bg_opa(obj, 255, LV_PART_MAIN | LV_STATE_DEFAULT);lv_obj_set_style_border_width(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);lv_obj_t* img=lv_img_create(obj);lv_obj_set_align(img,LV_ALIGN_TOP_MID);lv_obj_t* btn=lv_btn_create(obj);lv_obj_set_size(btn,LV_PCT(MAINPAGE_BTNPCT_W),LV_PCT(25));lv_obj_set_align(btn,LV_ALIGN_BOTTOM_MID);lv_obj_clear_flag(btn, LV_OBJ_FLAG_SCROLLABLE);lv_obj_set_style_bg_color(btn, lv_color_hex(0x031FFF), LV_PART_MAIN | LV_STATE_DEFAULT);lv_obj_set_style_bg_opa(btn, LV_OPA_TRANSP, LV_PART_MAIN | LV_STATE_DEFAULT);lv_obj_set_style_shadow_color(btn, lv_color_hex(0x031FFF), LV_PART_MAIN | LV_STATE_DEFAULT);lv_obj_set_style_shadow_opa(btn, LV_OPA_TRANSP, LV_PART_MAIN | LV_STATE_DEFAULT);lv_obj_set_style_text_color(btn, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);lv_obj_set_style_text_opa(btn, 255, LV_PART_MAIN | LV_STATE_DEFAULT);lv_obj_set_style_text_align(btn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);// lv_obj_set_style_text_font(btn, &lv_font_montserrat_40, LV_PART_MAIN | LV_STATE_DEFAULT);lv_obj_set_style_bg_color(btn, lv_color_hex(0x031FFF), LV_PART_MAIN | LV_STATE_FOCUS_KEY);lv_obj_set_style_bg_opa(btn, 255, LV_PART_MAIN | LV_STATE_FOCUS_KEY);lv_obj_set_style_outline_color(btn, lv_color_hex(0xFAD665), LV_PART_MAIN | LV_STATE_FOCUS_KEY);lv_obj_set_style_outline_opa(btn, 255, LV_PART_MAIN | LV_STATE_FOCUS_KEY);lv_obj_set_style_outline_width(btn, STYLE_OUTLINE_W, LV_PART_MAIN | LV_STATE_FOCUS_KEY);lv_obj_set_style_outline_pad(btn, 0, LV_PART_MAIN | LV_STATE_FOCUS_KEY);lv_obj_set_style_text_color(btn, lv_color_hex(0xFFFF00), LV_PART_MAIN | LV_STATE_FOCUS_KEY);lv_obj_set_style_text_opa(btn, 255, LV_PART_MAIN | LV_STATE_FOCUS_KEY);lv_obj_t* label=lv_label_create(btn);lv_obj_set_align(label, LV_ALIGN_CENTER);lv_obj_add_event_cb(btn,main_page_keyinput_event_cb,LV_EVENT_ALL,0);// lv_group_add_obj(lv_group_get_default(), btn); //shine add}
■ 屏幕是1280720, UI是1024600,是否修改UI
■ hc15xx-db-e100-v10-hcdemo.dtb 找不到
CONFIG_CUSTOM_DTS_PATH="$(TOPDIR)/board/hc15xx/common/dts/hc15xx-db-e100-v10-hcdemo.dts"
CONFIG_DEFAULT_DEVICE_TREE="hc15xx-db-e100-v10-hcdemo.dtb"
■ 触摸屏驱动 能否给个实例
■ 按键驱动
■ __initcall(projector_auto_start)
■ source insigt4.0 #ifdef 代码怎么自动灰显示问题
#ifndef UI_FAST_SHOW_SUPPORT
printf("ui_screen_init shine\n");
ui_screen_init();
#endif
■ 补丁是打在运行程序,还是代码中。
patch 0017解决电子书打开TXT空文件死机问题,当前补丁包含001-0017,请按照序号进行合成,如果之前有合过,请从之前合过的序号后开始合成。
■ Label align policy 只有左右对齐,没有上下居中`在这里插入代码片
lv_obj_set_style_text_align(ui_MBSP_fileSerial, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
LV_TEXT_ALIGN_AUTO, /< Align text auto*/LV_TEXT_ALIGN_LEFT, /< Align text to left*/
LV_TEXT_ALIGN_CENTER, /< Align text to center*/LV_TEXT_ALIGN_RIGHT, /< Align text to right*/