3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.tizenopensource.org/license
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 #define SEARCH_ADD_VIEW_WIDTH 480
20 //#define ADD_VIEW_HEIGHT 114
23 #define INPUT_LEFT_X1 ((SEARCH_ENTRY_L_R1_X)/SEARCH_ADD_VIEW_WIDTH)
24 #define INPUT_LEFT_Y1 ((SEARCH_ENTRY_C_R1_Y+2)/SEARCHBAR_H)
25 #define INPUT_LEFT_X2 ((SEARCH_ENTRY_L_R1_X)/SEARCH_ADD_VIEW_WIDTH)
26 #define INPUT_LEFT_Y2 ((SEARCH_ENTRY_C_R2_Y-7)/SEARCHBAR_H)
29 #define INPUT_CENTER_X1 ((SEARCH_ENTRY_C_R1_X)/SEARCH_ADD_VIEW_WIDTH)
30 #define INPUT_CENTER_Y1 ((SEARCH_ENTRY_C_R1_Y+2)/SEARCHBAR_H)
31 #define INPUT_CENTER_X2 ((SEARCH_ENTRY_C_R2_X)/SEARCH_ADD_VIEW_WIDTH)
32 #define INPUT_CENTER_Y2 ((SEARCH_ENTRY_C_R2_Y-7)/SEARCHBAR_H)
35 #define INPUT_RIGHT_X1 ((SEARCH_ENTRY_R_R1_X)/SEARCH_ADD_VIEW_WIDTH)
36 #define INPUT_RIGHT_Y1 ((SEARCH_ENTRY_C_R1_Y+2)/SEARCHBAR_H)
37 #define INPUT_RIGHT_X2 ((SEARCH_ENTRY_R_R2_X)/SEARCH_ADD_VIEW_WIDTH)
38 #define INPUT_RIGHT_Y2 ((SEARCH_ENTRY_C_R2_Y-7)/SEARCHBAR_H)
41 #define BUTTON_X1 ((412)/SEARCH_ADD_VIEW_WIDTH)
42 #define BUTTON_Y1 ((3)/SEARCHBAR_H)
43 #define BUTTON_X2 ((412+60)/SEARCH_ADD_VIEW_WIDTH)
44 #define BUTTON_Y2 ((3+60)/SEARCHBAR_H)
47 #define ENTRY_SWALLOW_X1 ((SEARCH_ENTRY_C_R1_X)/SEARCH_ADD_VIEW_WIDTH)
48 #define ENTRY_SWALLOW_Y1 ((SEARCH_ENTRY_C_R1_Y)/SEARCHBAR_H)
49 #define ENTRY_SWALLOW_X2 ((SEARCH_ENTRY_C_R2_X)/SEARCH_ADD_VIEW_WIDTH)
50 #define ENTRY_SWALLOW_Y2 ((SEARCH_ENTRY_C_R2_Y)/SEARCHBAR_H)
53 image: "label_bg.png" COMP;
55 image: "01_search_input_bg.png" COMP;
56 image: "01_search_button.png" COMP;
57 image: "01_search_input_field_bg_l.png" COMP;
58 image: "01_search_input_field_bg_c.png" COMP;
59 image: "01_search_input_field_bg_r.png" COMP;
74 rel1 { relative: 0.0 0.0; }
75 rel2 { relative: 1.0 1.0; }
82 name: "search_input_bg";
89 rel1 { relative: 0.0 0.0; }
90 rel2 { relative: 1.0 1.0; }
91 image { normal: "01_search_input_bg.png"; border_scale: 1;}
97 name: "search_entry_bgl";
102 state: "default" 0.0;
104 rel1 { relative: INPUT_LEFT_X1 INPUT_LEFT_Y1; to: "search_rect";}
105 rel2 { relative: INPUT_LEFT_X2 INPUT_LEFT_Y2; to: "search_rect";}
106 image { normal: "01_search_input_field_bg_l.png"; border_scale: 1;}
111 name: "search_entry_bgc";
116 state: "default" 0.0;
118 rel1 { relative: INPUT_CENTER_X1 INPUT_CENTER_Y1; to: "search_rect";}
119 rel2 { relative: INPUT_CENTER_X2 INPUT_CENTER_Y2; to: "search_rect";}
120 color:195 190 200 255;
125 name: "search_entry_bgr";
130 state: "default" 0.0;
132 rel1 { relative: INPUT_RIGHT_X1 INPUT_RIGHT_Y1; to: "search_rect";}
133 rel2 { relative: INPUT_RIGHT_X2 INPUT_RIGHT_Y2; to: "search_rect";}
134 image { normal: "01_search_input_field_bg_r.png"; border_scale: 1;}
139 name: "search_button_bg";
144 state: "default" 0.0;
146 rel1 { relative: BUTTON_X1 BUTTON_Y1; to: "search_rect";}
147 rel2 { relative: BUTTON_X2 BUTTON_Y2; to: "search_rect";}
148 image { normal: "01_search_button.png"; border_scale: 1;}
157 state: "default" 0.0;
158 rel1 { relative: ENTRY_SWALLOW_X1 ENTRY_SWALLOW_Y1; to: "search_rect";}
159 rel2 { relative: ENTRY_SWALLOW_X2 ENTRY_SWALLOW_Y2; to: "search_rect";}