Hi, all.
Recently, I'm developing an app with native api.
On my code, I added spinner as below. ( I attached my code.)
Now, I have 2 question about this.
1. If I set min, max value for spinner, when the value meets min or max value,
action is stopped. but, I want to make a rotation( 0->1 -> 2 -> 0->1 -> 2 ->..).
What should I do on my code ? Please let me know.
2. On spinner , text size is too big.
even if I change the 'evas_object_size_hint_min_set' , I can't reduce the text size.
Please let me know how to get.
=========================================================
if(strcmp(part, "elm.swallow.end") == 0)
{
Evas_Object *box = elm_box_add(obj);
elm_box_horizontal_set(box, EINA_TRUE);
evas_object_show(box);
double gender = 0.0; //0 : male, 1: female
//data->gender = gender;
data->gender_btn = elm_spinner_add(box);
evas_object_show(data->gender_btn);
evas_object_smart_callback_add(data->gender_btn, "changed", spinner_changed_cb, NULL);
evas_object_smart_callback_add(data->gender_btn, "delay,changed", spinner_delay_changed_cb, NULL);
evas_object_size_hint_align_set(data->gender_btn, EVAS_HINT_FILL, -1.0);
evas_object_size_hint_weight_set(data->gender_btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_min_set(data->gender_btn, ELM_SCALE_SIZE(BUTTON_SCALE_DATETIME_WIDTH), ELM_SCALE_SIZE(TEXT_SCALE_HEIGHT));
elm_spinner_editable_set(data->gender_btn, EINA_FALSE);
elm_spinner_min_max_set(data->gender_btn, 0, 1);
elm_spinner_special_value_add(data->gender_btn, 0, "Male");
elm_spinner_special_value_add(data->gender_btn, 1, "Female");
elm_box_pack_end(box, data->gender_btn);
evas_object_show(data->gender_btn);
evas_object_show(box);
return box;
}