Add channelinfo search layout
[profile/tv/apps/native/air_livetv.git] / data / view / channelinfo.edc
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http,//www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "../../include/define.h"
18
19 group {
20         name, GRP_VIEW_CHANNELINFO;
21         parts {
22                 part {
23                         name, PART_CONTENT;
24                         type, SWALLOW;
25                         scale, 1;
26                         description {
27                                 state, "default" 0.0;
28                                 rel1.relative, 1.0 0.0;
29                                 rel2.relative, 1.0 1.0;
30                                 min, 536 0;
31                                 align, 1.0 0.5;
32                                 fixed, 1 0;
33                         }
34                 }
35         }
36 }
37
38 group {
39         name, GRP_CHANNELINFO_LIST;
40         images {
41                 image, "btn_navigation_up.png" COMP;
42                 image, "btn_navigation_down.png" COMP;
43         }
44         parts {
45                 part {
46                         name, "bg";
47                         type, SPACER;
48                         scale, 1;
49                         description {
50                                 state, "default" 0.0;
51                                 rel1.relative, 0.0 0.5;
52                                 rel2.relative, 0.0 0.5;
53                                 min, 536 486;
54                                 align, 0.0 0.5;
55                                 fixed, 1 1;
56                         }
57                 }
58                 part {
59                         name, "part.navigation_up";
60                         type, IMAGE;
61                         scale, 1;
62                         description {
63                                 image.normal, "btn_navigation_up.png";
64                                 rel1 {
65                                         to, "bg";
66                                         relative, 0.5 0.0;
67                                 }
68                                 rel2 {
69                                         to, "bg";
70                                         relative, 0.5 0.0;
71                                 }
72                                 min, 98 34;
73                                 align, 0.5 0.0;
74                                 fixed, 1 1;
75                                 visible, 1;
76                         }
77                 }
78                 part {
79                         name, "padding.next_channel";
80                         type, SPACER;
81                         description {
82                                 rel1 {
83                                         to_y, "part.navigation_up";
84                                         relative, 0.0 1.0;
85                                 }
86                                 rel2 {
87                                         to_y, "part.navigation_up";
88                                         relative, 1.0 1.0;
89                                 }
90                                 min, 0 20;
91                                 align, 0.0 0.0;
92                                 fixed, 1 1;
93                         }
94                 }
95                 part {
96                         name, PART_CHANNELINFO_LIST_NEXT;
97                         type, SWALLOW;
98                         description {
99                                 rel1 {
100                                         to_y, "padding.next_channel";
101                                         relative, 0.0 1.0;
102                                 }
103                                 rel2 {
104                                         to_y, "padding.next_channel";
105                                         relative, 1.0 1.0;
106                                 }
107                                 min, 536 70;
108                                 align, 0.0 0.0;
109                                 fixed, 1 1;
110                         }
111                 }
112                 part {
113                         name, "padding.current_channel";
114                         type, SPACER;
115                         description {
116                                 rel1 {
117                                         to_y, PART_CHANNELINFO_LIST_NEXT;
118                                         relative, 0.0 1.0;
119                                 }
120                                 rel2 {
121                                         to_y, PART_CHANNELINFO_LIST_NEXT;
122                                         relative, 1.0 1.0;
123                                 }
124                                 min, 0 32;
125                                 align, 0.0 0.0;
126                                 fixed, 1 1;
127                         }
128                 }
129                 part {
130                         name, PART_CHANNELINFO_LIST_CURRENT;
131                         type, SWALLOW;
132                         description {
133                                 rel1 {
134                                         to_y, "padding.current_channel";
135                                         relative, 0.0 1.0;
136                                 }
137                                 rel2 {
138                                         to_y, "padding.current_channel";
139                                         relative, 1.0 1.0;
140                                 }
141                                 min, 536 174;
142                                 align, 0.0 0.0;
143                                 fixed, 1 1;
144                         }
145                 }
146                 part {
147                         name, "padding.prev_channel";
148                         type, SPACER;
149                         description {
150                                 rel1 {
151                                         to_y, PART_CHANNELINFO_LIST_CURRENT;
152                                         relative, 0.0 1.0;
153                                 }
154                                 rel2 {
155                                         to_y, PART_CHANNELINFO_LIST_CURRENT;
156                                         relative, 1.0 1.0;
157                                 }
158                                 min, 0 32;
159                                 align, 0.0 0.0;
160                                 fixed, 1 1;
161                         }
162                 }
163                 part {
164                         name, PART_CHANNELINFO_LIST_PREV;
165                         type, SWALLOW;
166                         description {
167                                 rel1 {
168                                         to_y, "padding.prev_channel";
169                                         relative, 0.0 1.0;
170                                 }
171                                 rel2 {
172                                         to_y, "padding.prev_channel";
173                                         relative, 1.0 1.0;
174                                 }
175                                 min, 536 70;
176                                 align, 0.0 0.0;
177                                 fixed, 1 1;
178                         }
179                 }
180                 part {
181                         name, "padding.navigation_down";
182                         type, SPACER;
183                         description {
184                                 rel1 {
185                                         to_y, PART_CHANNELINFO_LIST_PREV;
186                                         relative, 0.0 1.0;
187                                 }
188                                 rel2 {
189                                         to_y, PART_CHANNELINFO_LIST_PREV;
190                                         relative, 1.0 1.0;
191                                 }
192                                 min, 0 20;
193                                 align, 0.0 0.0;
194                                 fixed, 1 1;
195                         }
196                 }
197                 part {
198                         name, "part.navigation_down";
199                         type, IMAGE;
200                         scale, 1;
201                         description {
202                                 image.normal, "btn_navigation_down.png";
203                                 rel1 {
204                                         to_y, "padding.navigation_down";
205                                         relative, 0.5 1.0;
206                                 }
207                                 rel2 {
208                                         to_y, "padding.navigation_down";
209                                         relative, 0.5 1.0;
210                                 }
211                                 min, 98 34;
212                                 align, 0.5 0.0;
213                                 fixed, 1 1;
214                                 visible, 1;
215                         }
216                 }
217         }
218 }
219
220 group {
221         name, GRP_CHANNELINFO;
222         parts {
223                 part {
224                         name, "bg";
225                         type, RECT;
226                         scale, 1;
227                         description {
228                                 state, "default" 0.0;
229                                 rel1.relative, 0.0 0.5;
230                                 rel2.relative, 0.0 0.5;
231                                 min, 536 174;
232                                 align, 0.0 0.5;
233                         }
234                         description {
235                                 state, "focused" 0.0;
236                                 inherit, "default" 0.0;
237                                 color, COLOR_BG_FOCUSED;
238                         }
239                 }
240                 part {
241                         name, "padding.left_top";
242                         type, SPACER;
243                         scale, 1;
244                         description {
245                                 state, "default" 0.0;
246                                 rel1 {
247                                         to, "bg";
248                                         relative, 0.0 0.0;
249                                 }
250                                 rel2 {
251                                         to, "bg";
252                                         relative, 0.0 0.0;
253                                 }
254                                 min, 28 26;
255                                 align, 0.0 0.0;
256                                 fixed, 1 1;
257                         }
258                 }
259                 part {
260                         name, PART_CHANNELINFO_CHANNEL;
261                         type, TEXT;
262                         scale, 1;
263                         description {
264                                 state, "default" 0.0;
265                                 rel1 {
266                                         to, "padding.left_top";
267                                         relative, 1.0 1.0;
268                                 }
269                                 rel2 {
270                                         to, "padding.left_top";
271                                         relative, 1.0 1.0;
272                                 }
273                                 text {
274                                         font, FONT_LIGHT;
275                                         size, 28;
276                                         align, 0.0 0.5;
277                                 }
278                                 color, COLOR_TEXT_NORMAL;
279                                 min, 344 32;
280                                 align, 0.0 0.0;
281                                 fixed, 1 1;
282                         }
283                         description {
284                                 state, "focused" 0.0;
285                                 inherit, "default" 0.0;
286                                 color, COLOR_TEXT_FOCUSED;
287                         }
288                 }
289                 part {
290                         name, "padding.title";
291                         type, SPACER;
292                         scale, 1;
293                         description {
294                                 state, "default" 0.0;
295                                 rel1 {
296                                         to, PART_CHANNELINFO_CHANNEL;
297                                         relative, 0.0 1.0;
298                                 }
299                                 rel2 {
300                                         to, PART_CHANNELINFO_CHANNEL;
301                                         relative, 0.0 1.0;
302                                 }
303                                 min, 0 6;
304                                 align, 0.0 0.0;
305                                 fixed, 1 1;
306                         }
307                 }
308                 part {
309                         name, PART_CHANNELINFO_TITLE;
310                         type, TEXT;
311                         scale, 1;
312                         description {
313                                 state, "default" 0.0;
314                                 rel1 {
315                                         to, "padding.title";
316                                         relative, 0.0 1.0;
317                                 }
318                                 rel2 {
319                                         to, "padding.title";
320                                         relative, 0.0 1.0;
321                                 }
322                                 text {
323                                         font, FONT_LIGHT;
324                                         size, 28;
325                                         align, 0.0 0.5;
326                                 }
327                                 color, COLOR_TEXT_NORMAL;
328                                 min, 484 32;
329                                 align, 0.0 0.0;
330                                 fixed, 1 1;
331                         }
332                         description {
333                                 state, "focused" 0.0;
334                                 inherit, "default" 0.0;
335                                 color, COLOR_TEXT_FOCUSED;
336                         }
337                 }
338                 part {
339                         name, "padding.time";
340                         type, SPACER;
341                         scale, 1;
342                         description {
343                                 state, "default" 0.0;
344                                 rel1 {
345                                         to, PART_CHANNELINFO_TITLE;
346                                         relative, 0.0 1.0;
347                                 }
348                                 rel2 {
349                                         to, PART_CHANNELINFO_TITLE;
350                                         relative, 0.0 1.0;
351                                 }
352                                 min, 0 24;
353                                 align, 0.0 0.0;
354                                 fixed, 1 1;
355                         }
356                 }
357                 part {
358                         name, PART_CHANNELINFO_TIME;
359                         type, TEXT;
360                         scale, 1;
361                         description {
362                                 state, "default" 0.0;
363                                 rel1 {
364                                         to, "padding.time";
365                                         relative, 0.0 1.0;
366                                 }
367                                 rel2 {
368                                         to, "padding.time";
369                                         relative, 0.0 1.0;
370                                 }
371                                 text {
372                                         font, FONT_LIGHT;
373                                         size, 28;
374                                         align, 0.0 0.5;
375                                 }
376                                 color, 112 112 112 255;
377                                 min, 484 28;
378                                 align, 0.0 0.0;
379                                 fixed, 1 1;
380                         }
381                         description {
382                                 state, "focused" 0.0;
383                                 inherit, "default" 0.0;
384                                 color, COLOR_TEXT_FOCUSED;
385                         }
386                 }
387                 part {
388                         name, "padding.right_top";
389                         type, SPACER;
390                         scale, 1;
391                         description {
392                                 state, "default" 0.0;
393                                 rel1 {
394                                         to, "bg";
395                                         relative, 1.0 0.0;
396                                 }
397                                 rel2 {
398                                         to, "bg";
399                                         relative, 1.0 0.0;
400                                 }
401                                 min, 22 28;
402                                 align, 1.0 0.0;
403                                 fixed, 1 1;
404                         }
405                 }
406                 part {
407                         name, PART_CHANNELINFO_STATUS;
408                         type, SWALLOW;
409                         scale, 1;
410                         description {
411                                 state, "default" 0.0;
412                                 rel1 {
413                                         to, "padding.right_top";
414                                         relative, 0.0 1.0;
415                                 }
416                                 rel2 {
417                                         to, "padding.right_top";
418                                         relative, 0.0 1.0;
419                                 }
420                                 min, 142 28;
421                                 align, 1.0 0.0;
422                                 fixed, 1 1;
423                         }
424                 }
425         }
426         programs {
427                 program {
428                         name, "focused";
429                         signal, SIGNAL_FOCUSED;
430                         source, SOURCE_ELM;
431                         action, STATE_SET "focused" 0.0;
432                         target, "bg";
433                         target, PART_CHANNELINFO_CHANNEL;
434                         target, PART_CHANNELINFO_TITLE;
435                         target, PART_CHANNELINFO_TIME;
436                 }
437                 program {
438                         name, "unfocused";
439                         signal, SIGNAL_UNFOCUSED;
440                         source, SOURCE_ELM;
441                         action, STATE_SET "default" 0.0;
442                         target, "bg";
443                         target, PART_CHANNELINFO_CHANNEL;
444                         target, PART_CHANNELINFO_TITLE;
445                         target, PART_CHANNELINFO_TIME;
446                 }
447         }
448 }
449
450 group {
451         name, GRP_CHANNELINFO_SIMPLE;
452         parts {
453                 part {
454                         name, "bg";
455                         type, RECT;
456                         scale, 1;
457                         description {
458                                 state, "default" 0.0;
459                                 min, 536 70;
460                                 align, 0.0 0.0;
461                                 fixed, 1 1;
462                                 visible, 0;
463                         }
464                 }
465                 part {
466                         name, "padding.left";
467                         type, SPACER;
468                         scale, 1;
469                         description {
470                                 state, "default" 0.0;
471                                 rel1 {
472                                         to, "bg";
473                                         relative, 0.0 0.0;
474                                 }
475                                 rel2 {
476                                         to, "bg";
477                                         relative, 0.0 0.0;
478                                 }
479                                 min, 28 0;
480                                 align, 0.0 0.0;
481                                 fixed, 1 1;
482                         }
483                 }
484                 part {
485                         name, PART_CHANNELINFO_CHANNEL;
486                         type, TEXT;
487                         scale, 1;
488                         description {
489                                 state, "default" 0.0;
490                                 rel1 {
491                                         to, "padding.left";
492                                         relative, 1.0 0.0;
493                                 }
494                                 rel2 {
495                                         to, "padding.left";
496                                         relative, 1.0 0.0;
497                                 }
498                                 text {
499                                         font, FONT_LIGHT;
500                                         size, 32;
501                                         align, 0.0 0.5;
502                                 }
503                                 color, COLOR_TEXT_TRANS;
504                                 min, 480 32;
505                                 align, 0.0 0.0;
506                                 fixed, 1 1;
507                         }
508                 }
509                 part {
510                         name, "padding.title";
511                         type, SPACER;
512                         scale, 1;
513                         description {
514                                 state, "default" 0.0;
515                                 rel1 {
516                                         to, PART_CHANNELINFO_CHANNEL;
517                                         relative, 0.0 1.0;
518                                 }
519                                 rel2 {
520                                         to, PART_CHANNELINFO_CHANNEL;
521                                         relative, 0.0 1.0;
522                                 }
523                                 min, 0 6;
524                                 align, 0.0 0.0;
525                                 fixed, 1 1;
526                         }
527                 }
528                 part {
529                         name, PART_CHANNELINFO_TITLE;
530                         type, TEXT;
531                         scale, 1;
532                         description {
533                                 state, "default" 0.0;
534                                 rel1 {
535                                         to, "padding.title";
536                                         relative, 0.0 1.0;
537                                 }
538                                 rel2 {
539                                         to, "padding.title";
540                                         relative, 0.0 1.0;
541                                 }
542                                 text {
543                                         font, FONT_LIGHT;
544                                         size, 32;
545                                         align, 0.0 0.5;
546                                 }
547                                 color, COLOR_TEXT_TRANS;
548                                 min, 480 32;
549                                 align, 0.0 0.0;
550                                 fixed, 1 1;
551                         }
552                 }
553         }
554 }