Languages

Menu
Sites
Language
Why is my text on my watch flickering when I add an image?

 

Heres my image part from the EDC. 

 

    part {

            name: "brain";

            type: IMAGE;

            description {

               state: "default" 0;

               align: 0.5 0.5;

               min: 25 25;

               rel1 { relative: 0.2 200/360 ; to: "bg"; }

               rel2 { relative: 0.2 200/360 ; to: "bg"; }

              // color : 0 204 77 255;

               image {

               normal: "brain.png";

               middle: DEFAULT;

            }    

           visible: 0;        

         }

 

I update the text with view_set_text(s_info.layout, "text.main.task","example");

My app is a countdown timer and it works well no flickering when I remove the part "brain" from the EDC

When I put it back into the code and I set visible to 0 it still flickers.

When I change visible 0 to visible 1, it still flickers.

 

Any one knows how to fix it?

Edited by: Ben Iti on 19 Feb, 2018

Responses

1 Replies
GEUNSOO KIM

well.. your way to show and hide a EDC part is not usual way of usage.

usually in EDC programming,

1. define multiple descriptions for the EDC part. for your case, they could be "default" and "show"

2. set visible as 0 on "default", and "show" inherits "default" but set visible as 1.

3. add  "program" sections which switch to "default" and "show" state with specific signals.

4. toggle show/hide state by sending the signals (defined on above step 3) to the layout. (using elm_layout_signal_emit() api)

for your reference, find "EDJE Data Collection Reference" on the online documents for the EDC details.