Implements Apps out VI
authorHyerim Kim <rimi.kim@samsung.com>
Mon, 24 Apr 2017 07:32:57 +0000 (16:32 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:53 +0000 (18:34 +0900)
Signed-off-by: Hyerim Kim <rimi.kim@samsung.com>
Change-Id: I479767b9e1e0065706b5cdce78fd64529fca64c4

TVApps/TVApps.TizenTV/TVApps.TizenTV.cs
TVApps/TVApps/Views/MainPage.xaml.cs
TVHome/TVHome.TizenTV/TVHome.TizenTV.csproj
TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_85.9.png [new file with mode: 0755]
TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_95.9.png [new file with mode: 0755]

index 6c4c662..d758527 100755 (executable)
@@ -58,7 +58,7 @@ namespace TVApps.TizenTV
             LoadApplication(app);
 
             PackageManagerPort.RegisterCallbacks(notification);
-
+            MainWindow.Alpha = true;
             MainWindow.KeyUp += KeyUpListener;
 
             MainWindow.KeyGrab(ElmSharp.EvasKeyEventArgs.PlatformMenuButtonName, true);
index 6f04242..0fa0ccb 100755 (executable)
@@ -129,12 +129,27 @@ namespace TVApps.Views
             set { SetValue(SumOfCheckedAppProperty, value); }
         }
 
-        /*
+
         private async void PlayHideAnimation()
         {
-            // TODO : Apps Out Animation.
+            var animation = new Animation();
+            var headerAnimation = new Animation(v => Header.Opacity = v, 1, 0);
+            var titleAnimation = new Animation(v => TitleLabel.Opacity = v, 1, 0);
+            var footerAnimation = new Animation(v => FooterNormal.Opacity = v, 1, 0);
+            var appListHeightAnimation = new Animation(v => AppList.TranslationY = v, 0, SizeUtils.GetHeightSize(12));
+            var appListAnimation = new Animation(v => AppList.Opacity = v, 1, 0);
+            var mainAnimation = new Animation(v => this.Opacity = v, 1, 0);
+
+            animation.Add(0.2, 0.8, headerAnimation);
+            animation.Add(0.2, 0.8, titleAnimation);
+            animation.Add(0.2, 0.8, footerAnimation);
+            animation.Add(0.2, 1, appListHeightAnimation);
+            animation.Add(0.2, 0.8, appListAnimation);
+            animation.Add(0.2, 1, mainAnimation);
+
+            animation.Commit(this, "QuitAnimation", 16, 834);
         }
-        */
+
 
         /// <summary>
         /// A constructor
@@ -434,6 +449,8 @@ namespace TVApps.Views
             var answer = await DisplayAlert("QUIT", "Do you want to quit?", "YES", "NO");
             if (answer)
             {
+                PlayHideAnimation();
+                await Task.Delay(800);
                 AppControlUtils.SelfTerminate();
             }
             else
index 9185efa..a6e0a28 100755 (executable)
     <Content Include="res\ic_tizen_option_menu_list_box_check_normal.png" />
     <Content Include="res\ic_tizen_option_menu_list_box_check_selected.png" />
     <Content Include="res\ic_yellow.png" />
+    <Content Include="res\img_apps_list_dimmed_85.9.png" />
+    <Content Include="res\img_apps_list_dimmed_95.9.png" />
     <Content Include="res\img_home_list_dimmed_apps_60.png" />
     <Content Include="res\img_tizen_apps_list_dimmed.png" />
     <Content Include="res\img_tizen_apps_list_dimmed_check.png" />
diff --git a/TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_85.9.png b/TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_85.9.png
new file mode 100755 (executable)
index 0000000..872d761
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_85.9.png differ
diff --git a/TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_95.9.png b/TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_95.9.png
new file mode 100755 (executable)
index 0000000..2d39df9
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_95.9.png differ