Item : intial version
[apps/native/sample/adventure.git] / res / edje / main_view.edc
1 collections {
2         group {
3                 name: "main";
4
5                 styles {
6                         style {
7                                 name: "description_style";
8                                 base: "font=Tizen:style=Bold font_size=26 color=#ffffff align=center text_class=tizen";
9                                 tag:  "br" "\n";
10                                 tag:  "hilight" "+ font_weight=Bold";
11                                 tag:  "b" "+ font_weight=Bold";
12                                 tag:  "tab" "\t";
13                         }
14                 }
15
16                 parts {
17                         part {
18                                 name: "bg";
19                                 type: RECT;
20                                 description {
21                                         state: "default" 0.0;
22                                         rel1 { relative: 0.0 0.0; }
23                                         rel2 { relative: 1.0 1.0; }
24                                         color: 246 243 243 255;
25                                         visible: 1;
26                                 }
27                         }
28                         part {
29                                 name: "entry";
30                                 type: SWALLOW;
31                                 scale: 1;
32                                 mouse_events: 1;
33                                 description {
34                                         state: "default" 0.0;
35                                         rel1 { relative: 0.5 26/800; to: "bg"; }
36                                         rel2 { relative: 0.5 26/800; to: "bg"; }
37                                         align: 0.5 0.0;
38                                         visible: 1;
39                                 }
40                                 description {
41                                         state: "hide" 0.0;
42                                         inherit: "default" 0.0;
43                                         align: 0.5 1.0;
44                                 }
45                         }
46                         part {
47                                 name: "map_area";
48                                 type: RECT;
49                                 scale: 1;
50                                 mouse_events: 0;
51                                 description {
52                                         state: "default" 0.0;
53                                         rel1 { relative: 0.0 1.0; to: "entry"; }
54                                         rel2 { relative: 1.0 1.0; to: "entry"; }
55                                         align: 0.5 0.0;
56                                         color: 246 243 243 255;
57                                         min: 0 410;
58                                         visible: 1;
59                                 }
60                         }
61                         part {
62                                 name: "map";
63                                 type: SWALLOW;
64                                 scale: 1;
65                                 mouse_events: 0;
66                                 description {
67                                         state: "default" 0.0;
68                                         rel1 { relative: 0.5 242/410; to: "map_area"; }
69                                         rel2 { relative: 0.5 242/410; to: "map_area"; }
70                                         align: 0.5 0.5;
71                                         visible: 1;
72                                 }
73                         }
74                         part {
75                                 name: "result_button";
76                                 type: SWALLOW;
77                                 description {
78                                         state: "default" 0.0;
79                                         rel1 { relative: 0.5 1.0; to: "map"; }
80                                         rel2 { relative: 0.5 1.0; to: "map"; }
81                                         align: 0.5 0.0;
82                                         visible: 1;
83                                 }
84                                 description {
85                                         state: "hide" 0.0;
86                                         inherit: "default" 0.0;
87                                         visible: 0;
88                                 }
89                         }
90                         part {
91                                 name: "title";
92                                 type: TEXT;
93                                 scale: 1;
94                                 description {
95                                         state: "default" 0.0;
96                                         rel1 { relative: 0.0 0.0; to: "map"; }
97                                         rel2 { relative: 1.0 1.0; to: "map"; }
98                                         color: 0 0 0 255;
99                                         align: 0.5 0.0;
100                                         min: 0 50;
101                                         visible: 1;
102                                         text {
103                                                 text: "";
104                                                 font: "Tizen:style=Bold";
105                                                 text_class: "tizen";
106                                                 min: 0 0;
107                                                 size: 32;
108                                                 align: 0.5 0.5;
109                                         }
110                                 }
111                                 description {
112                                         state: "hide" 0.0;
113                                         inherit: "default" 0.0;
114                                         visible: 0;
115                                 }
116                         }
117                         part {
118                                 name: "description";
119                                 type: TEXTBLOCK;
120                                 scale: 1;
121                                 description {
122                                         state: "default" 0.0;
123                                         rel1 { relative: 0.0 0.0; to: "title"; }
124                                         rel2 { relative: 1.0 1.0; to: "title"; }
125                                         align: 0.5 0.0;
126                                         min: 0 100;
127                                         visible: 1;
128                                         text {
129                                                 text: "";
130                                                 style: "description_style";
131                                         }
132                                 }
133                                 description {
134                                         state: "hide" 0.0;
135                                         inherit: "default" 0.0;
136                                         visible: 0;
137                                 }
138                         }
139                         part {
140                                 name: "selected_scroller";
141                                 type: SWALLOW;
142                                 scale: 1;
143                                 mouse_events: 0;
144                                 description {
145                                         state: "default" 0.0;
146                                         rel1 { relative: 0.5 1.0; to: "map"; }
147                                         rel2 { relative: 0.5 1.0; to: "map"; }
148                                         align: 0.5 0.0;
149                                         visible: 1;
150                                 }
151                                 description {
152                                         state: "hide" 0.0;
153                                         inherit: "default" 0.0;
154                                         visible: 0;
155                                 }
156                         }
157                         part {
158                                 name: "entry_result";
159                                 type: SWALLOW;
160                                 scale: 1;
161                                 mouse_events: 0;
162                                 description {
163                                         state: "default" 0.0;
164                                         rel1 { relative: 0.0 1.0; to: "entry"; }
165                                         rel2 { relative: 1.0 1.0; to: "bg"; }
166                                         align: 0.5 0.0;
167                                         visible: 1;
168                                 }
169                                 description {
170                                         state: "hide" 0.0;
171                                         inherit: "default" 0.0;
172                                         visible: 0;
173                                 }
174                         }
175                 }
176                 programs {
177                         program {
178                                 signal: "hide";
179                                 source: "entry";
180                                 action: STATE_SET "hide" 0.0;
181                                 target: "entry";
182                         }
183                         program {
184                                 signal: "show";
185                                 source: "entry";
186                                 action: STATE_SET "default" 0.0;
187                                 target: "entry";
188                         }
189
190                         program {
191                                 signal: "hide";
192                                 source: "entry_result";
193                                 action: STATE_SET "hide" 0.0;
194                                 target: "entry_result";
195                         }
196                         program {
197                                 signal: "show";
198                                 source: "entry_result";
199                                 action: STATE_SET "default" 0.0;
200                                 target: "entry_result";
201                         }
202
203                         program {
204                                 signal: "hide";
205                                 source: "text";
206                                 action: STATE_SET "hide" 0.0;
207                                 target: "title";
208                                 target: "description";
209                         }
210                         program {
211                                 signal: "show";
212                                 source: "text";
213                                 action: STATE_SET "default" 0.0;
214                                 target: "title";
215                                 target: "description";
216                         }
217
218                         program {
219                                 signal: "hide";
220                                 source: "selected_scroller";
221                                 action: STATE_SET "hide" 0.0;
222                                 target: "selected_scroller";
223                         }
224                         program {
225                                 signal: "show";
226                                 source: "selected_scroller";
227                                 action: STATE_SET "default" 0.0;
228                                 target: "selected_scroller";
229                         }
230                 }
231         }
232 }