lvgl v8之scrolling with Right To Left base direction
to with base left V8 right LVGL
2023-09-14 09:06:41 时间
scrolling with Right To Left base direction
/**
* Scrolling with Right To Left base direction
*/
static void lv_example_scroll_5(void)
{
lv_obj_t* obj = lv_obj_create(lv_scr_act()); // 创建obj对象
lv_obj_set_style_base_dir(obj, LV_BASE_DIR_RTL, 0);// 设置LV_BASE_DIR_RTL对齐方式
lv_obj_set_size(obj, 200, 100); //设置obj大小
lv_obj_center(obj); // 居中显示
lv_obj_t* label = lv_label_create(obj); // 在Obj对象上创建label对象
lv_label_set_text(label, "This page is for people who already know some English,\
and can read a page like this written in basic English."); // 设置label显示内容
lv_obj_set_width(label, 400); //设置label宽度
}
运行效果图
相关文章
- A configuration error occurred during startup.Please verify the preference field with the prompt: To
- adb server didn't ack failed to start daemon
- 【问题解决方案】git无法pull仓库refusing to merge unrelated histories
- [Intro to Deep Learning with PyTorch -- L2 -- N24] Logistic Regression Algorithm
- [TypeScript] Configuring TypeScript Which Files to Compile with "Files" and "OutDir"
- [Angular 2] Dispatching Action with Payloads and type to Reducers
- python卸载或者安装时提示There is a problem with this Windows Installer package.A program required for this install to complete could not be run. Contact your support personnel or package vendor
- The nodes should be added to the underlying vendor clusterware before adding them to the CRS cluster
- Ruby on Rails 3 Can't connect to local MySQL server through socket '/tmp/mysql.sock' on linux
- [React + GraphQL] Use useLazyQuery to manually execute a query with Apollo React Hooks
- [Transducer] Step by Step to build a simple transducer
- [Node.js] Intro to Web Scraping with Node and X-ray
- 【22】报错ERROR:./depthai_sdk is not a valid editable requirement. It should either be a path to a local
- paip. sip module implements API v10.0 to v10.1 but the PyQt4.QtCore module requires API v9.2
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- 【codeforces 793B】Igor and his way to work
- 成功解决TypeError: Value passed to parameter 'paddings' has DataType float32 not in list of allowed valu
- 成功解决ValueError: You are trying to load a weight file containing 4 layers into a model with 0 layers.
- 已解决Encountered error while trying to install package.> lxml
- How to import a Maven project with Intellij Command line tool with command "idea pom.xml"?
- 导入CSV数据出现报错的解决方案: FutureWarning: Indexing with multiple keys (implicitly converted to a tuple of key