Hi to all, I am trying to put a label aligned to the top and a button in the middle, I have this code: (My target is mobile 2.4)
ad->label = elm_label_add(ad->conform);
elm_object_text_set(ad->label, "<align=center>Waiting GPS status</align>");
evas_object_size_hint_weight_set(ad->label, 0.5, 0.5);
evas_object_size_hint_align_set(ad->label, 0.0, 0.0);
elm_object_content_set(ad->conform, ad->label);
ad->btn = elm_button_add(ad->conform);
elm_object_text_set(ad->btn, "Button");
evas_object_smart_callback_add(ad->btn, "clicked", btn_clicked_cb, ad);
evas_object_size_hint_weight_set(ad->btn, 0.3, 0.3);
evas_object_size_hint_align_set(ad->btn, 0.5, 0.5);
elm_object_content_set(ad->conform, ad->btn);
evas_object_show(ad->win);
Well, you can see only one super huge button in the screen covering everything.
I couldnt find any compilable example for API 2.4 in the ducumentation for play with values and underestand how is working.
Please, cuuld anyone help me? Thanks!