Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
618 views
in Technique[技术] by (71.8m points)

tizen - Speed up scrolling of genlist item?

I have a native genlist with item style of 1text.

This style is capable of scrolling when the text is longer than the display, but how can I control the speed? I want it to scroll faster.

Thanks.

question from:https://stackoverflow.com/questions/65845897/speed-up-scrolling-of-genlist-item

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...