In this example we add four labels to a homogeneous table that has a padding of 5px between cells.
The interesting bits from this example are:
- Where we set the table as homogeneous and the padding:
- Where we add each label to the table:
Here you can see the full source:
#include <Elementary.h>
EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *win, *label, *table;
evas_object_show(table);
elm_object_text_set(label, "label 0");
evas_object_show(label);
elm_object_text_set(label, "label 1");
evas_object_show(label);
elm_object_text_set(label, "label 2");
evas_object_show(label);
elm_object_text_set(label, "label 3");
evas_object_show(label);
evas_object_show(win);
return 0;
}
Our example will look like this: