edc group with two text part with dynamic width in one line

edc group with two text part with dynamic width in one line

BY 12 May 2015 Native Application Development

Hi,

I am define a edc group with two text part, I want to put them in a line, and its width should be resized base on its content, the second text part should be following closely with the first text part. Them should be looks like: “Hello””world”, or “Hi””World”, the position of “world” should be related to the “Hello” or “Hi”

I can’t find a way in edc to implement it, help! Thanks for any advice.

group { 
        name: "doubletextlabel";
        parts{
            part{
                name: "bg";
                type: RECT;
                scale: 1;
                description {
                    state: "default" 0.0;
                    rel1 { relative: 0.0 0.0; }
                    rel2 { relative: 1.0 1.0; }
                    color: 36 65 98 255;
                }
            }
            part{
                name: "text.head";
                type: TEXT;
                scale: 1;
                description {
                    state: "default" 0.0;
                    rel1 { relative: 0.0 0.0; }
                    rel2 { relative: 0.5 1.0; }
                    text {
                        font: "Tizen:style=Regular";
                        size: 26;
                        min: 1 1;
                        align: 0.5 0.5;
                    }
                    color: 255 255 255 255;
                }
            }
            part{
                name: "text.end";
                type: TEXT;
                scale: 1;
                description {
                    state: "default" 0.0;
                    rel1 { relative: 0.5 0.0; }
                    rel2 { relative: 1.0 1.0; }
                    text {
                        font: "Tizen:style=Regular";
                        size: 26;
                        min: 1 1;
                        align: 0.5 0.5;
                    }
                    color: 255 255 255 255;
                }
            }
        }
        programs {
            program {
                name: "headclick";
                source: "text.head";
                signal: "mouse,clicked,1";
                action:  SIGNAL_EMIT "text,click" "edj,text.head";
            }
            program {
                name: "endclick";
                source: "text.end";
                signal: "mouse,clicked,1";
                action:  SIGNAL_EMIT "text,click" "edj,text.end";
            }
        } //end programs
    }

 

Written by