当前位置:网站首页>LVLG 8.2 circular scrolling animation of a label
LVLG 8.2 circular scrolling animation of a label
2022-07-04 14:35:00 【Fairy sword love】
Create custom circular scrolling Text scrolling effect
static void lv_example_label_5(void)
{
static lv_anim_t animation_template; / Animation variable definition
static lv_style_t label_style;
lv_anim_init(&animation_template);
lv_anim_set_delay(&animation_template, 1000); // Set the wait 1 Seconds to start animation
lv_anim_set_repeat_delay(&animation_template,
3000); // Delay after the animation returns to the initial position 3 Second repeated scrolling
/*Initialize the label style with the animation template*/
lv_style_init(&label_style);
lv_style_set_anim(&label_style, &animation_template); // sytle Associate animation variables
lv_obj_t* label1 = lv_label_create(lv_scr_act()); // establish label
lv_label_set_long_mode(label1, LV_LABEL_LONG_SCROLL_CIRCULAR); //Circular scroll Pattern
lv_obj_set_width(label1, 150); // Set width
lv_label_set_text(label1, "It is a circularly scrolling text. ");// Set text content
lv_obj_align(label1, LV_ALIGN_CENTER, 0, 40);//LV_ALIGN_CENTER Alignment
lv_obj_add_style(label1, &label_style, LV_STATE_DEFAULT); //label add to style
}
Running effect

边栏推荐
- Stm32f1 and stm32subeide programming example -max7219 drives 8-bit 7-segment nixie tube (based on GPIO)
- The implementation of OSD on rk1126 platform supports color translucency and multi-channel support for Chinese
- What is the difference between Bi financial analysis in a narrow sense and financial analysis in a broad sense?
- C language book rental management system
- 利用Shap值进行异常值检测
- ML之shap:基于boston波士顿房价回归预测数据集利用Shap值对LiR线性回归模型实现可解释性案例
- codeforce:C. Sum of Substrings【边界处理 + 贡献思维 + 灵光一现】
- NowCoder 反转链表
- flink sql-client.sh 使用教程
- Node mongodb installation
猜你喜欢

No servers available for service: xxxx

Leetcode T48: rotating images
![leetcode:6109. Number of people who know the secret [definition of DP]](/img/95/03e2606b249f26db052cf5075041c1.png)
leetcode:6109. Number of people who know the secret [definition of DP]

Chapter 17 process memory

ML之shap:基于boston波士顿房价回归预测数据集利用shap值对XGBoost模型实现可解释性案例

【MySQL从入门到精通】【高级篇】(五)MySQL的SQL语句执行流程

92. (cesium chapter) cesium building layering

【MySQL从入门到精通】【高级篇】(四)MySQL权限管理与控制

Leetcode 61: rotating linked list

LVGL 8.2 Line
随机推荐
Leetcode 61: rotating linked list
Test process arrangement (2)
leetcode:6110. The number of incremental paths in the grid graph [DFS + cache]
(1)性能调优的标准和做好调优的正确姿势-有性能问题,上HeapDump性能社区!
LifeCycle
opencv3.2 和opencv2.4安装
The game goes to sea and operates globally
Excel quickly merges multiple rows of data
利用Shap值进行异常值检测
实战解惑 | OpenCV中如何提取不规则ROI区域
[MySQL from introduction to proficiency] [advanced chapter] (V) SQL statement execution process of MySQL
开发中常见问题总结
Leetcode T47: 全排列II
Map of mL: Based on Boston house price regression prediction data set, an interpretable case of xgboost model using map value
Industrial Internet has greater development potential and more industry scenarios
Opencv3.2 and opencv2.4 installation
【MySQL从入门到精通】【高级篇】(五)MySQL的SQL语句执行流程
LVLG 8.2 circular scrolling animation of a label
Detailed analysis of pytorch's automatic derivation mechanism, pytorch's core magic
LVGL 8.2 Line wrap, recoloring and scrolling