text {
style: "entry_single_textblock_guide_style";
min: 0 1;
- align: 0.0 0.0;
+ align: 0.0 0.5;
}
}
description { state: "hidden" 0.0;
text {
style: "entry_single_textblock_guide_style";
min: 0 1;
- align: 0.0 0.0;
+ align: 0.0 0.5;
}
}
description { state: "hidden" 0.0;
evas_object_show(en);
elm_box_pack_end(bx, en);
+ /* entry with guide */
+ en = elm_entry_add(win);
+ elm_entry_scrollable_set(en, EINA_TRUE);
+ evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
+ evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
+ elm_scroller_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
+ elm_object_part_text_set(en, "guide", "This string is guide");
+ elm_entry_single_line_set(en, EINA_TRUE);
+ evas_object_show(en);
+ elm_box_pack_end(bx, en);
+
/* password entry */
en = elm_entry_add(win);
elm_entry_scrollable_set(en, EINA_TRUE);
*
* Default text parts of the entry that you can use for are:
* @li "default" - text of the entry
+ * @li "guide" - placeholder of the entry
*
* Supported elm_object common APIs.
* @li @ref elm_object_signal_emit