Inline image and text ind EDC

Inline image and text ind EDC

BY 16 Feb 2017 Native Application Development

I had created edc file which contains image and text (inline). But when the text is longer it expands in both directions. I tried making it expand only to the right – but without success.

 

I tried creating horizontal box with image but the image was not working.

 

Explanation of what I want to achieve:

[Img]     short text

[Img]     little longer text 

 

What I currently have:

[Img]     short text

[Img] little longer text

 

my edc file:

collections
{
   base_scale: 1.0;
   group 
   {
      name: "horizontal_image_text";
      parts 
      {
         part 
         {
            name: "image";
            type: SWALLOW;
            description 
            {
               state: "default";
               fixed: 1 1;
               align: 0.0 0.0;
            }
         }
         part
         { 
            name: "text";
            type: TEXT;
            description 
            { 
               state: "default";
               fixed: 1 1;
               rel1.to: "image";
               rel2.to: "image";
               rel1.relative: 1.0 0.5;
               rel2.relative: 4.0 0.5;
               text 
               {
                  font: "Tizen:style=Regular";
                  size: 35;
                  min : 1 1;
               }
               color: 255 255 255 255;
            }
         }        
      }
   }
}

 

Written by