Taskmanager / res / edje /
item.edc
/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd
*
* Licensed under the Flora License, Version 1.1 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://floralicense.org/license/
*
* 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.
*/
#include "../../inc/defines.h"
collections {
group {
name: GENLIST_CUSTOM_ITEM_GROUP;
parts {
part {
name: ITEM_PART_BASE;
type: RECT;
scale: 1;
description {
state: "default" 0.0;
color: 0 0 0 0;
}
description {
state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
dragable {
x: 1 1 2;
y: 0 0 0;
}
}
part {
name: ITEM_PART_LEFT_PADDING;
type: SPACER;
scale: 1;
repeat_events: 1;
description {
state: "default" 0.0;
min: 15 0;
align: 0.0 0.0;
rel1 { to: ITEM_PART_BASE; relative: 0.0 0.0; }
rel2 { to: ITEM_PART_BASE; relative: 0.0 1.0; }
}
}
part {
name: ITEM_PART_RIGHT_PADDING;
type: SPACER;
scale: 1;
repeat_events: 1;
description {
state: "default" 0.0;
min: 15 0;
align: 1.0 0.0;
rel1 { to: ITEM_PART_BASE; relative: 1.0 0.0; }
rel2 { to: ITEM_PART_BASE; relative: 1.0 1.0; }
}
}
part {
name: ITEM_PART_TOP_PADDING;
type: SPACER;
scale: 1;
repeat_events: 1;
description {
state: "default" 0.0;
min: 0 15;
align: 0.0 0.0;
rel1 { to: ITEM_PART_BASE; relative: 0.0 0.0; }
rel2 { to: ITEM_PART_BASE; relative: 1.0 0.0; }
}
}
part {
name: ITEM_PART_BOTTOM_PADDING;
type: SPACER;
scale: 1;
repeat_events: 1;
description {
state: "default" 0.0;
min: 0 15;
align: 0.0 1.0;
rel1 { to: ITEM_PART_BASE; relative: 0.0 1.0; }
rel2 { to: ITEM_PART_BASE; relative: 1.0 1.0; }
}
}
part {
name: ITEM_PART_CONTENT;
type: SWALLOW;
scale: 1;
repeat_events: 1;
description {
state: "default" 0.0;
min: 40 40;
align: 0.5 0.0;
rel1 { to_x: ITEM_PART_LEFT_PADDING; to_y: ITEM_PART_TOP_PADDING; relative: 1.0 1.0; }
rel2 { to_x: ITEM_PART_BASE; to_y: ITEM_PART_BOTTOM_PADDING; relative: 0.25 0.0; }
}
description {
state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part {
name: ITEM_PART_TEXT;
type: TEXT;
scale: 1;
repeat_events: 1;
description {
state: "default" 0.0;
rel1 { to: ITEM_PART_CONTENT; relative: 1.0 0.0; }
rel2 { to_x: ITEM_PART_RIGHT_PADDING; to_y: ITEM_PART_BOTTOM_PADDING; relative: 0.0 0.0; }
text { font: "Tizen:style=regular"; size: 18; ellipsis: 0.0; align: 0.0 0.5; }
color: 0 0 0 255;
}
description {
state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
}
programs {
program {
name: ITEM_PROGRAM_RESET_POSITION;
signal: ITEM_PROGRAM_RESET_POSITION_SIGNAL;
source: ITEM_PROGRAM_RESET_POSITION_SOURCE;
action: DRAG_VAL_SET 0.0 0.0;
target: ITEM_PART_BASE;
}
program {
name: ITEM_PROGRAM_HIDE;
signal: ITEM_PROGRAM_HIDE_SIGNAL;
source: ITEM_PROGRAM_HIDE_SOURCE;
action: STATE_SET "hidden" 0.0;
target: ITEM_PART_BASE;
target: ITEM_PART_CONTENT;
target: ITEM_PART_TEXT;
}
}
}
}