2021年3月11日星期四

Tizen: Set text of part in group which is in EDC file

I'm trying to write a widget for Tizen platform. Layout of the widget is described in a EDC file. I needed a block, which contains some text and image parts, to be repeated three times with different text labels. So I decided that I need to create a group with required parts and use it as item in a box part:

group {      name: "list_item";        parts {          part {              name: "label1";              type: "TEXT";                description { ...  }          }            part {              name: "label2";              type: "TEXT";                description { ... }          }      }  }    group {      name: "content";        parts {          part {              name: "list";              type: "BOX";                box {                  items {                      item {                          type: "GROUP";                          name: "item1";                          source: "list_item";                      }                        item {                          type: "GROUP";                          name: "item2";                          source: "list_item";                      }                        item {                          type: "GROUP";                          name: "item3";                          source: "list_item";                      }                  }              }                description { ... }          }      }  }  

For static text parts, which are placed in primary layout group content, I use elm_object_part_text_set(wid->content, part_name, text) (the language is C, btw), but can't figure out how to set text of label1 part of each instance of list_item.

https://stackoverflow.com/questions/66587288/tizen-set-text-of-part-in-group-which-is-in-edc-file March 12, 2021 at 01:12AM

没有评论:

发表评论