语言

Menu
Sites
Language
The role of conformant in Tizen native app
I've checked many sample project for tizen native app, the conformant widget was always as the first(and only) child of the main window, as below code. /* Conformant */ ad->conform = elm_conformant_add(ad->win); elm_win_indicator_mode_set(ad->win, ELM_WIN_INDICATOR_SHOW); elm_win_indicator_opacity_set(ad->win, ELM_WIN_INDICATOR_OPAQUE); evas_object_size_hint_weight_set(ad->conform, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_win_resize_object_add(ad->win, ad->conform); evas_object_show(ad->conform); I want to know its background design concepts for the ui app, is the direct child of a window must to be a conformant widget and why? Or did the window can have other children except the conformant?

响应

1 回复
Sanjeev BA

Think of it as a container that takes care of your app's UI elements when other UI elements like indicatior panel, virtual keypad & softkey windows appear from time to time.

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.apireference/group__Conformant.html

"conformant content is sized and positioned considering the space required for such stuff, and when they popup, as a keyboard shows when an entry is selected, conformant content won't change."

Using conformant will save you from doing extra work to ensure the UI layout adapts to external elements.