当前位置:网站首页>LVGL 8.2 Drop down in four directions
LVGL 8.2 Drop down in four directions
2022-06-30 10:54:00 【Fairy sword love】
establish 4 A direction drop down list
/** * Create a drop down, up, left and right menus */
static void lv_example_dropdown_2(void)
{
static const char* opts = "Apple\n"
"Banana\n"
"Orange\n"
"Melon"; //drop down Option text content
lv_obj_t* dd;
dd = lv_dropdown_create(lv_scr_act()); // establish drop down object
lv_dropdown_set_options_static(dd, opts); // Set the contents of the option list
lv_obj_align(dd, LV_ALIGN_TOP_MID, 0, 10); //LV_ALIGN_TOP_MID Alignment
dd = lv_dropdown_create(lv_scr_act()); // establish drop down object
lv_dropdown_set_options_static(dd, opts);// Set the contents of the option list
lv_dropdown_set_dir(dd, LV_DIR_BOTTOM); // Set the direction of the drop-down list to BOTTOM
lv_dropdown_set_symbol(dd, LV_SYMBOL_UP); // Set up drop down Arrow symbols are provided by the system LV_SYMBOL_UP
lv_obj_align(dd, LV_ALIGN_BOTTOM_MID, 0, -10);//LV_ALIGN_BOTTOM_MID Alignment
dd = lv_dropdown_create(lv_scr_act()); // establish drop down object
lv_dropdown_set_options_static(dd, opts); // Set the contents of the option list
lv_dropdown_set_dir(dd, LV_DIR_RIGHT); // Set the direction of the drop-down list to LV_DIR_RIGHT
lv_dropdown_set_symbol(dd, LV_SYMBOL_RIGHT); // Set up drop down Arrow symbols are provided by the system LV_SYMBOL_RIGHT
lv_obj_align(dd, LV_ALIGN_LEFT_MID, 10, 0);//LV_ALIGN_LEFT_MID Alignment
dd = lv_dropdown_create(lv_scr_act()); // establish drop down object
lv_dropdown_set_options_static(dd, opts);// Set the contents of the option list
lv_dropdown_set_dir(dd, LV_DIR_LEFT); // Set the direction of the drop-down list to LV_DIR_LEFT
lv_dropdown_set_symbol(dd, LV_SYMBOL_LEFT); // Set up drop down Arrow symbols are provided by the system LV_SYMBOL_LEFT
lv_obj_align(dd, LV_ALIGN_RIGHT_MID, -10, 0);//LV_ALIGN_RIGHT_MID Alignment
}
Running effect 
边栏推荐
- Double-DQN笔记
- 超长干货 | Kubernetes命名空间详解
- Ant financial's written test question: what can be quantified in the requirements document? [Hangzhou multi tester] [Hangzhou multi tester \wang Sir]
- Using LVM to resize partitions
- Deep dive kotlin Xie Cheng (17): Actor
- 透過華為軍團看科技之變(五):智慧園區
- Sarsa笔记
- [STL source code analysis] container (to be supplemented)
- LVGL 8.2 Image
- 程序员需知的 59 个网站
猜你喜欢

scratch绘制正方形 电子学会图形化编程scratch等级考试二级真题和答案解析2022年6月

Go zero micro Service Practice Series (VIII. How to handle tens of thousands of order requests per second)

The two e-commerce bigwigs' lacy news screens represent the return of e-commerce to normal, which will be beneficial to the real economy
[email protected]+adxl345+ Motor vibration + serial port output"/>Skill sorting [email protected]+adxl345+ Motor vibration + serial port output

CSDN blog operation team 2022 H1 summary

go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)

Criu enables hot migration
![[机缘参悟-34]:光锥之内皆命运](/img/3e/9f5630ba382df7f7ce00705445cef8.jpg)
[机缘参悟-34]:光锥之内皆命运

CP2112使用USB转IIC通信教学示例

Dickinson's soul chooses its companion
随机推荐
深潜Kotlin协程(十六):Channel
& and - > priority
June training (day 30) - topology sorting
05_ Node JS file management module FS
前嗅ForeSpider教程:抽取数据
智能DNA分子纳米机器人模型来了
【Proteus仿真】Arduino UNO LED模拟交通灯
From introduction to mastery of MySQL 50 lectures (32) -scylladb production environment cluster building
Ionic4 drag the ion reorder group component to change the item order
ArcGIS Pro scripting tool (6) -- repairing CAD layer data sources
基于HAL库的LED驱动库
Android 开发面试真题进阶版(附答案解析)
LVGL 8.2 menu from a drop-down list
Auto SEG loss: automatic loss function design
MySQL从入门到精通50讲(三十二)-ScyllaDB生产环境集群搭建
蚂蚁金服笔试题:需求文档有什么可以量化的【杭州多测师】【杭州多测师_王sir】...
Foresniffer tutorial: extracting data
Dickinson's soul chooses its companion
Pandora IOT development board learning (HAL Library) - Experiment 1 running lantern (RGB) experiment (learning notes)
Deep dive kotlin synergy (18): hot and cold data flow