on elm_entry, How can I get the text with right align ?

on elm_entry, How can I get the text with right align ?

BY 14 May 2015 Native Application Development

today, I’m making the health app as below.

This entered text is displayed by left align.

But, I want to change the align as right.

How can I change it ?

Please help me.

Thanks.


    Evas_Object *entry = elm_entry_add(box);
    elm_entry_single_line_set(entry, EINA_TRUE);
    elm_entry_scrollable_set(entry, EINA_TRUE);
    elm_scroller_policy_set(entry, ELM_SCROLLER_POLICY_AUTO, ELM_SCROLLER_POLICY_OFF);
    Elm_Entry_Filter_Limit_Size limit = {VALUE_CHAR_LIMIT, VALUE_BYTE_LIMIT};
    elm_entry_markup_filter_append(entry, elm_entry_filter_limit_size, &limit);
    elm_entry_cnp_mode_set(entry, ELM_CNP_MODE_PLAINTEXT);
 elm_entry_input_panel_layout_set(entry, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY);

    evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 evas_object_size_hint_max_set(entry, ELM_SCALE_SIZE(100), ELM_SCALE_SIZE(BUTTON_SCALE_HEIGHT));
    evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL);

    elm_object_part_text_set(entry, “elm.guide”, value_guide);
    evas_object_smart_callback_add(entry, “changed”, _weight_entry_changed_cb, view_data);
    evas_object_show(entry);
    elm_entry_entry_set(entry, view_data->weight);

Written by