I'm using a date picker on Tizen (Wearable):
Evas_Object* datetime = elm_datetime_add(layout);
Evas_Object* circle_datetime = eext_circle_object_datetime_add(datetime, circlesurface);
elm_object_style_set(datetime, "datepicker/circle");
This results a layout like this:
By default, year has been selected, so I can immediately change it with the rotary.
I wish the day field to be selected by default.
How can I reach this?
What I've found is an ancient source of Tizen. In this file, at the bottom, there is a notation of a "FIXME":
FIXME(150420) : After deciding how to support current types to application developer, we will define these APIs' name and parameters.
And there is also a function:
EAPI void
eext_circle_object_datetime_selected_field_type_set(Evas_Object *obj, Elm_Datetime_Field_Type type)
I could fire a touch event on my desired part, but I don't know where is the datepicker/circle
EDC source file.
Any help would be great, thank you!
Yes there is no API for your requirement.
But you can do that with below way.
Gets day object in datetime layout
Evas_Object *day_obj = elm_object_part_content_get(datetime, "field2");
Set focus to given object
elm_object_focus_set(day_obj, true);