}
/* Create layout for conformant */
- layout = view_create_layout(parent, file_name, group_name, cb_function, user_data);
+ if (!file_name) {
+ layout = view_create_layout_by_theme(parent, "layout", "application", "default");
+ } else {
+ layout = view_create_layout(parent, file_name, group_name, cb_function, user_data);
+ }
+
if (layout == NULL) {
dlog_print(DLOG_ERROR, LOG_TAG, "layout is NULL.");
return NULL;
}
/* Create layout for conformant */
- layout = view_create_layout(parent, file_name, group_name, cb_function, user_data);
+ if (!file_name) {
+ layout = view_create_layout_by_theme(parent, "layout", "application", "default");
+ } else {
+ layout = view_create_layout(parent, file_name, group_name, cb_function, user_data);
+ }
+
if (layout == NULL) {
dlog_print(DLOG_ERROR, LOG_TAG, "layout is NULL.");
return NULL;
return layout;
}
-
/*
* @brief: Make a layout with theme.
* @param[parent]: Object to which you want to add this layout