summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwoochan lee <wc0917.lee@samsung.com>2015-09-21 18:58:16 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2015-09-21 20:48:14 +0900
commita57d3a63feaa450cb74cff0a250825506f84ad65 (patch)
tree20fcc3cb8cc3c30949fa37af5f09c25a6df87c16
parentb1d88d1715b157d270a4abe4f3f82e4dba4576af (diff)
downloadefl-theme-tizen-mobile-a57d3a63feaa450cb74cff0a250825506f84ad65.tar.gz
efl-theme-tizen-mobile-a57d3a63feaa450cb74cff0a250825506f84ad65.tar.bz2
efl-theme-tizen-mobile-a57d3a63feaa450cb74cff0a250825506f84ad65.zip
[2.4][index] Fastscroll indicator show/hide effect implement.
Change-Id: Ie2f3923aac925eb3b77893830c8fa6e670efac05
-rw-r--r--mobile/widgets/index.edc36
1 files changed, 36 insertions, 0 deletions
diff --git a/mobile/widgets/index.edc b/mobile/widgets/index.edc
index e7628efb..0e31dbc3 100644
--- a/mobile/widgets/index.edc
+++ b/mobile/widgets/index.edc
@@ -25,6 +25,9 @@
*/
group { name: "elm/index/base/vertical/default";
+ script {
+ public animate = 0;
+ }
images {
set {
name: "core_index_scroll_popup_bg";
@@ -591,14 +594,47 @@
program { name: "index.active";
signal: "elm,indicator,state,active";
source: "elm";
+ script {
+ if (get_int(animate) == 0) {
+ set_int(animate, 1);
+ run_program(PROGRAM:"active_effect");
+ }
+ else {
+ set_state(PART:"clip2", "default", 0.0);
+ run_program(PROGRAM:"active_effect");
+ }
+ }
+ }
+ program { name: "active_effect";
action: STATE_SET "active" 0.0;
target: "clip2";
+ transition: GLIDE_EASE_OUT(0.15);
+ after: "animate_finish";
}
program { name: "index.inactive";
signal: "elm,indicator,state,inactive";
source: "elm";
+ script {
+ if (get_int(animate) == 0) {
+ set_int(animate, 1);
+ run_program(PROGRAM:"inactive_effect");
+ }
+ else {
+ set_state(PART:"clip2", "active", 0.0);
+ run_program(PROGRAM:"inactive_effect");
+ }
+ }
+ }
+ program { name: "inactive_effect";
action: STATE_SET "default" 0.0;
target: "clip2";
+ transition: GLIDE_EASE_OUT(0.45);
+ after: "animate_finish";
+ }
+ program { name: "animate_finish";
+ script {
+ set_int(animate, 0);
+ }
}
program { name: "event.inactive";
signal: "elm,priority,up";