static void __apps_view__set_icon_label_style(app_data_t *item, view_state_t state);
static void __apps_view_folder_entry_done_cb(void *data, Evas_Object *obj, void *event_info);
+static void __apps_view_folder_entry_focused_cb(void *data, Evas_Object *obj, void *event_info);
+static void __apps_view_folder_entry_unfocused_cb(void *data, Evas_Object *obj, void *event_info);
+
Evas_Object *apps_view_create(Evas_Object *win)
{
elm_entry_scrollable_set(entry, EINA_TRUE);
evas_object_show(entry);
- char style_string[STR_MAX] = {0, };
+ char style_string[STR_MAX] = { 0, };
snprintf(style_string, sizeof(style_string), "<font_size=40><color=#60606060><align=center>%s</align></color></font_size>", _("IDS_COM_HEADER_UNNAMED_FOLDER"));
elm_object_part_text_set(entry, "elm.guide", style_string);
elm_entry_input_panel_return_key_type_set(entry, ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE);
- evas_object_smart_callback_add(entry, "activated", __apps_view_folder_entry_done_cb, entry);
+ evas_object_smart_callback_add(entry, "activated", __apps_view_folder_entry_done_cb, NULL);
+ evas_object_smart_callback_add(entry, "focused", __apps_view_folder_entry_focused_cb, NULL);
+ evas_object_smart_callback_add(entry, "unfocused", __apps_view_folder_entry_unfocused_cb, NULL);
elm_entry_text_style_user_push(entry, "DEFAULT='font=Tizen:style=Regular align=center color=#4DE7FFFF font_size=40 wrap=none'");
elm_entry_entry_set(entry, apps_view_s.opened_folder->label_str);
elm_entry_input_panel_hide(obj);
elm_object_focus_set(obj, EINA_FALSE);
}
+
+static void __apps_view_folder_entry_focused_cb(void *data, Evas_Object *obj, void *event_info)
+{
+ elm_object_part_text_set(obj, "elm.guide", "");
+}
+
+static void __apps_view_folder_entry_unfocused_cb(void *data, Evas_Object *obj, void *event_info)
+{
+ char style_string[STR_MAX] = { 0, };
+ snprintf(style_string, sizeof(style_string), "<font_size=40><color=#60606060><align=center>%s</align></color></font_size>", _("IDS_COM_HEADER_UNNAMED_FOLDER"));
+ elm_object_part_text_set(obj, "elm.guide", style_string);
+}