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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…