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.
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.
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.
more additional information about marquee in genlist. edje_object_part_text_marquee_speed_set API can be used for edje object to change marquee speed. yet, genlist item doesn't expose their edje object in any chances, so you cannot change marquee speed by the API. only way you can do is customize new genlist item edc refered "1text" style, and change the marquee speed property.