Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
489 views
in Technique[技术] by (71.8m points)

tizen - Howto override or add genlist item style?

I want to override genlist item style with my own:

group { "elm/genlist/item/1text/default";
  data {
     item: "texts" "elm.text";
  }

rect { "elm.clipper";
  scale: 0;
  desc { "default";
     color: 249 0 249 255;
     min: 360 120;
     max: 360 120;
  }
}

text { "elm.text";
  scale: 1; 
  clip_to: "elm.clipper";
  desc { "default";
    text { 
      text: "elm.text";
      size: TEXT1_SIZE;
    }
  }
}

Now my problem is that if I don't set min and max for the clipper, I get this:

enter image description here

If I set to be 360x120, it seems the current items are larger than the "default" genlist style. And the last item goes more down than others (ie, it gets an offset downwards):

enter image description here

So, is there anybody on this living planet who has an example of a customized genlist item style?

What the ... shall I use in the EDC to be it as high as the default style???

question from:https://stackoverflow.com/questions/65868548/howto-override-or-add-genlist-item-style

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

https://docs.tizen.org/application/native/guides/ui/efl/component-custom/

Please refer to the above doc.

The genlist way to harder than customized other widgets like button, radio, or check.

I recommend that you implement your requirements as much as possible using the styles supported by default.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...