您当前的位置: 首页 > 

仙剑情缘

暂无认证

  • 0浏览

    0关注

    333博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

lvgl v8之scrolling with Right To Left base direction

仙剑情缘 发布时间:2021-10-31 18:19:24 ,浏览量:0

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宽度
  
}
运行效果图

在这里插入图片描述

关注
打赏
1658017818
查看更多评论
立即登录/注册

微信扫码登录

0.0641s