bt,
bt2,
NULL);
- elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!");
- elm_object_item_content_part_set(it, "elm.swallow.icon", ic);
+ elm_object_item_text_part_set(it, ELM_NAVIFRAME_ITEM_TEXT_SUBTITLE, "Here is sub-title part!");
+ elm_object_item_content_part_set(it, ELM_NAVIFRAME_ITEM_CONTENT_ICON, ic);
elm_naviframe_item_title_visible_set(it, EINA_FALSE);
evas_object_smart_callback_add(bt2, "clicked", _title_visible, it);
}
bt3,
NULL);
elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!");
- elm_object_item_content_part_set(it, "elm.swallow.icon", ic);
+ elm_object_item_content_part_set(it, ELM_NAVIFRAME_ITEM_CONTENT_ICON, ic);
}
void
bt,
bt2,
NULL);
- elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!");
+ elm_object_item_text_part_set(it, ELM_NAVIFRAME_ITEM_TEXT_SUBTITLE, "Here is sub-title part!");
}
void
nf = elm_naviframe_add(win);
elm_win_resize_object_add(win, nf);
+ evas_object_size_hint_weight_set(nf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(nf);
evas_object_smart_callback_add(nf, "title,clicked", _title_clicked, 0);
*
* Default contents parts of the naviframe items that you can use for are:
* @li "elm.swallow.content" - A main content of the page
+ * @li "elm.swallow.icon" - A icon in the title area
* @li "elm.swallow.prev_btn" - A button to go to the previous page
* @li "elm.swallow.next_btn" - A button to go to the next page
*
* Default text parts of the naviframe items that you can use for are:
* @li "elm.text.title" - Title label in the title area
+ * @li "elm.text.subtitle" - Sub-title label in the title area
*
* @ref tutorial_naviframe gives a good overview of the usage of the API.
*/
-#define ELM_NAVIFRAME_ITEM_PREV_BTN "elm.swallow.prev_btn"
-#define ELM_NAVIFRAME_ITEM_NEXT_BTN "elm.swallow.next_btn"
+#define ELM_NAVIFRAME_ITEM_CONTENT_ICON "elm.swallow.icon"
+#define ELM_NAVIFRAME_ITEM_CONTENT_PREV_BTN "elm.swallow.prev_btn"
+#define ELM_NAVIFRAME_ITEM_CONTNET_NEXT_BTN "elm.swallow.next_btn"
+#define ELM_NAVIFRAME_ITEM_TEXT_SUBTITLE "elm.text.subtitle"
/**
* @addtogroup Naviframe