【问题标题】:Speed up scrolling of genlist item?加快 genlist 项目的滚动?
【发布时间】:2021-01-22 13:15:29
【问题描述】:

我有一个原生genlist,项目样式为1text

当文本长于显示时,这种样式可以滚动,但是如何控制速度?我希望它滚动得更快。

谢谢。

【问题讨论】:

    标签: tizen tizen-native-app


    【解决方案1】:
    Let's figure out how to change the text scroll speed.
    
    The native genlist 1text style edc is implemented in the file below.
    
    Project profile/wearable/platform/core/uifw/efl-theme-tizen-wearable/wearable-circle/widgets/genlist.edc
    
    Branch : tizen
    
    textblock { "elm.text"; scale;
       desc { "default";
          rel1 {
             relative: 1.0 1.0;
             to_x: "elm.padding.icon";
             to_y: "elm.padding.top";
          }
          rel2 {
             relative: 0.0 0.0;
             to_x: "elm.padding.right";
             to_y: "elm.padding.bottom";
          }
          fixed: 1 0;
          min: 0 LIST_TEXT_MAIN_HEIGHT_INC;
          align: 0.5 0.5;
          text {
             min: 0 1;
             max: 1 1;
             style: "list_text_3text.1icon_main_normal";
             fit: 1 0;
             size: LIST_TEXT_MAIN_SIZE_INC;
             size_range: LIST_TEXT_MAIN_MIN_SIZE_INC LIST_TEXT_MAIN_SIZE_INC;
             ellipsize {
                fade.mode: ON;
                marquee {
                   type: ROLL;
                   loop: 1;
                   loop_delay: MARQUEE_LOOP_DELAY;
                   **speed: MARQUEE_SPEED;**
                }
             }
          }
       }
    
    In edc file in 1text group. there is a textblock part for show text.
    in the part there is a property for Marquee speed value.
    that is for the text scroll speed.
    
    EAPI Eina_Bool
    edje_object_part_text_marquee_speed_set(Evas_Object *obj, const char *part, double speed)
    
    And this API can change the property.
    

    【讨论】:

    • 我们是否有任何网站记录了此ellipsize 选项?
    • 另外,我需要list_text_3text.1icon_main_normalLIST_TEXT_MAIN_SIZE_INCLIST_TEXT_MAIN_MIN_SIZE_INC。或者我真的必须克隆整个 Tizen 分支来改变字幕速度? :D
    • 我也不知道如何克隆 Tizen,因为我没有“review.tizen.org”的用户。一些信息可能会放在“developer.tizen.org”上,我无法使用我的 gmail 电子邮件注册(没有发送电子邮件 - 我在 Facebook 上问过很多次)。
    • 1.您检查过您的 gmail 帐户中的垃圾邮件吗?我刚试过用gmail做了一个,确认邮件直接发送到我的垃圾邮箱。仍然无法使用新创建的帐户登录 review.tizen.org,我认为这需要时间..
    • 2.据我所知,这个 ellipsize.marquee 不是 efl 公共功能,这是 tizen 内部功能,因此没有关于它的文档。使用带有选框的 edc 仅用于内部使用,因为它只是一种文本样式,目前不是列表功能的属性。它并不意味着对用户更改公开开放..所以没有简单的方法来改变它。唯一的方法是自定义整个项目样式新,这对于应用程序开发人员来说是非常不推荐的。您需要的所有值都在 efl-theme-tizen-wearable git 的 HVGA-inc.edc 中。
    【解决方案2】:

    更多关于 genlist 中选取框的信息。 edje_object_part_text_marquee_speed_set API 可用于 edje 对象以更改选取框速度。 然而,genlist item 不会暴露他们的 edje 对象, 因此您无法通过 API 更改选取框速度。 您唯一能做的就是自定义新的 genlist 项目 edc 称为“1text”样式, 并更改选取框速度属性。

    【讨论】:

    • 能否请您看看我关于 SVG 的其他 Tizen 问题:stackoverflow.com/questions/65939893/… 很抱歉在这里问这个问题,但是没有可用的论坛让我可以取得联系。 JIRA 不工作,facebook 由机器人处理。论坛没有发送电子邮件。
    • 对不起,我不知道 svg。但其他了解 svg 的人会回答。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-02-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多