ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/im_setting_list)
ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/im_setting_selector)
ADD_SUBDIRECTORY(po)
+ADD_SUBDIRECTORY(res)
"_CREDIT_CARD_NUMBERS_MSG")
+#define MAIN_LAYOUT_EDJ RESDIR"/edje/main_layout.edj"
+
typedef struct list_item_text_s
{
char main_text[256];
Evas_Object *back_btn = NULL;
const char *title = NULL;
const char *item_style = NULL;
+ Elm_Object_Item *nf_main_item = NULL;
+
#ifdef _WEARABLE
item_style = "empty";
#else
evas_object_smart_callback_add(back_btn, "clicked", im_setting_list_navi_back_btn_call_cb, NULL);
#endif
- Elm_Object_Item *nf_main_item = elm_naviframe_item_push(ad->naviframe,
+ Evas_Object *layout = elm_layout_add(ad->naviframe);
+#if defined(_WEARABLE) || defined(_MOBILE)
+ elm_layout_theme_set(layout, "layout", "application", "default");
+#else
+ elm_layout_file_set(layout, MAIN_LAYOUT_EDJ, "main_layout");
+#endif
+
+ elm_object_content_set(layout, ad->genlist);
+ evas_object_show(layout);
+
+ nf_main_item = elm_naviframe_item_push(ad->naviframe,
title,
back_btn,
NULL,
- ad->genlist,
+ layout,
item_style);
#ifdef _WEARABLE
Source0: %{name}-%{version}.tar.gz
BuildRequires: gettext-tools
+BuildRequires: edje-bin
BuildRequires: cmake
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(isf)
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{TZ_SYS_RO_ICONS}/default/small/*
+%{TZ_SYS_RO_APP}/%{name}/res/*
%{TZ_SYS_RO_PACKAGES}/%{name}.xml
%license LICENSE
--- /dev/null
+ADD_SUBDIRECTORY(edje)
--- /dev/null
+ADD_CUSTOM_TARGET(
+ main_layout.edj
+ COMMAND edje_cc -no-save
+ ${CMAKE_CURRENT_SOURCE_DIR}/main_layout.edc
+ ${CMAKE_BINARY_DIR}/main_layout.edj
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/main_layout.edc
+)
+
+# install edc files
+INSTALL(FILES ${CMAKE_BINARY_DIR}/main_layout.edj DESTINATION ${RESDIR}/edje)
+
+ADD_CUSTOM_TARGET(edje ALL DEPENDS main_layout.edj)
--- /dev/null
+/*
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#define PADDING_SIZE 40
+#define PADDING_BOTTOM_SIZE 30
+
+collections
+{
+ base_scale: 1.8;
+
+ group { "main_layout";
+ parts {
+ rect { "base";
+ desc { "default";
+ color: 238 239 241 255;
+ }
+ }
+ spacer { "padding.left"; scale;
+ desc { "default";
+ min: PADDING_SIZE 0;
+ max: PADDING_SIZE -1;
+ fixed: 1 0;
+ align: 0.0 0.0;
+ rel.to: "base";
+ }
+ }
+ spacer { "padding.right"; scale;
+ desc { "default";
+ min: PADDING_SIZE 0;
+ max: PADDING_SIZE -1;
+ fixed: 1 0;
+ align: 1.0 0.0;
+ rel.to: "base";
+ }
+ }
+ swallow { "elm.swallow.content";
+ desc { "default";
+ rel1 { relative: 1.0 0.0; to: "padding.left"; }
+ rel2 { relative: 0.0 0.0;
+ to_x: "padding.right";
+ to_y: "padding.bottom";
+ }
+ }
+ }
+ spacer { "padding.bottom"; scale;
+ desc { "default";
+ min: 0 PADDING_BOTTOM_SIZE;
+ max: -1 PADDING_BOTTOM_SIZE;
+ fixed: 0 1;
+ align: 0.0 1.0;
+ rel.to: "base";
+ }
+ }
+ }
+ }
+}