label recoloring and scrolling for little vGL
for and Label Little
2023-09-14 09:11:17 时间
-
label重新着色和字符滚动实现
void label_recoloring_scroling(void) { lv_obj_t* label1 = lv_label_create(lv_scr_act(), NULL); lv_label_set_long_mode(label1, LV_LABEL_LONG_BREAK); /*Break the long lines*/ lv_label_set_recolor(label1, true); /*Enable re-coloring by commands in the text*/ lv_label_set_align(label1, LV_LABEL_ALIGN_CENTER); /*Center aligned lines*/ lv_label_set_text(label1, "#000080 Re-color# #0000ff words# #6666ff of a# label " "and wrap long text automatically."); lv_obj_set_width(label1, 150); lv_obj_align(label1, NULL, LV_ALIGN_CENTER, 0, -30); lv_obj_t* label2 = lv_label_create(lv_scr_act(), NULL); lv_label_set_long_mode(label2, LV_LABEL_LONG_SROLL_CIRC); lv_obj_set_width(label2, 150); lv_label_set_text(label2, "It is a circularly scrolling text. "); lv_obj_align(label2, NULL, LV_ALIGN_CENTER, 0, 30); }
-
效果图
相关文章
- 【论文阅读】STAN:Spatio-Temporal Attention Network for Next Location Recommendation
- Java开发工具:IntelliJ IDEA 2022 for Mac
- 魔兽争霸3冰封王座Warcraft III for mac(即时战略游戏)
- Macs Fan Control Pro for mac(电脑风扇控制降温)
- Downie 4 for Mac(视频下载工具)兼容13系统v4.6.11中文版
- ORA-02060: select for update specified a join of distributed tables ORACLE 报错 故障修复 远程处理
- ORA-02225: only EXECUTE and DEBUG privileges are valid for procedures ORACLE 报错 故障修复 远程处理
- ORA-26819: string capture server for apply “string” and capture “string”encounters disabled or aborted propagation “string”. ORACLE 报错 故障修复 远程处理
- ORA-48143: error changing permissions for a file ORACLE 报错 故障修复 远程处理
- ORA-12853: insufficient memory for PX buffers: current stringK, max needed stringK ORACLE 报错 故障修复 远程处理
- Python(for和while)循环嵌套及用法
- mybatis foreach报错It was either not specified and/or could not be found for the javaType Type handler详解编程语言
- Managing Linux Configurations: Tips and Tricks for Optimizing Your System(linuxcfg)
- Exploring the Differences Between RDS and Redis: Which is Right for Your Needs?(rds和redis)
- Unlocking the Power of Linux with NBU: A Guide for Techsavvy Enthusiasts(linuxnbu)
- Efficient and Effective: Mastering Oracle Batch Updates for Streamlined Data Management(oracle批量更新)