Change Layout and Animation in TVHome
authorHeonjae Jang <heonjae.jang@samsung.com>
Tue, 23 May 2017 08:08:49 +0000 (17:08 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:56 +0000 (18:34 +0900)
Change-Id: Ie65bc85ccea68bba86f465b84757ab9df2e74f30
Signed-off-by: Heonjae Jang <heonjae.jang@samsung.com>
TVApps/TVApps/Controls/AppItemCell.xaml
TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml.cs
TVHome/TVHome/Controls/SubPanelButton.xaml.cs
TVHome/TVHome/Controls/SubPanelSettingButton.xaml.cs
TVHome/TVHome/Views/MainPage.xaml
TVHome/TVHome/Views/SubPanel.xaml.cs

index 3317ab1..d21c79d 100755 (executable)
@@ -8,7 +8,7 @@
       IsChecked="{Binding IsChecked}"
       IsShowOptions="{Binding IsShowOptions}"
       IsDim="{Binding IsDim}"
-      IsFocused="{Binding IsFocused}"
+      IsItemFocused="{Binding IsFocused}"
       PinCommand="{Binding OptionMenuPinToggleCommand}"
       DeleteCommand="{Binding OptionMenuDeleteCommand}"
       ToDefaultCommand="{Binding ToDefaultCommand}">
index 272a785..beb6120 100755 (executable)
@@ -76,8 +76,8 @@ namespace TVHome.Controls
             ButtonTitle.FadeTo(0.99, 300);
             ButtonTitle.TranslateTo(0, selectTransitionHeight, 300);
 #pragma warning restore CS4014
-            await ButtonImage.ScaleTo(1.3, 300);
-            ButtonDimmedImage.Scale = 1.3;
+            await ButtonImage.ScaleTo(1.235, 300);
+            ButtonDimmedImage.Scale = 1.235;
         }
 
         /// <summary>
index 8300b5a..270c4b3 100755 (executable)
@@ -35,7 +35,7 @@ namespace TVHome.Controls
         /// <summary>
         /// SubPanel icon's transition height value when it focused.
         /// </summary>
-        private int moveTransitionHeight = SizeUtils.GetHeightSize(130);
+        private int moveTransitionHeight = SizeUtils.GetHeightSize(128);
 
         /// <summary>
         /// Constructor
@@ -239,8 +239,8 @@ namespace TVHome.Controls
             ButtonTitle.FadeTo(0.8, 300);
             ButtonTitle.TranslateTo(0, selectTransitionHeight, 300);
 #pragma warning restore CS4014
-            await ButtonImage.ScaleTo(1.3, 300);
-            ButtonDimmedImage.Scale = 1.3;
+            await ButtonImage.ScaleTo(1.235, 300);
+            ButtonDimmedImage.Scale = 1.235;
         }
 
         /// <summary>
index 1101413..bc97f1e 100755 (executable)
@@ -76,8 +76,8 @@ namespace TVHome.Controls
             ButtonTitle.FadeTo(0.99, 300);
             ButtonTitle.TranslateTo(0, selectTransitionHeight, 300);
 #pragma warning restore CS4014
-            await ButtonImage.ScaleTo(1.3, 300);
-            ButtonDimmedImage.Scale = 1.3;
+            await ButtonImage.ScaleTo(1.235, 300);
+            ButtonDimmedImage.Scale = 1.235;
         }
 
         /// <summary>
index 1df880f..6bef84f 100755 (executable)
@@ -44,7 +44,7 @@
             <Views:SubPanel x:Name="AppsSubPanel"
                             RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.2370}"
                             RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
-                            RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.8981}"
+                            RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.8833}"
                             OnFocusedCommand="{Binding SubPanelFocusedCommand}"
                             OnMoveVMCommand="{Binding OnMoveCommand}"
                             OnUnpinVMCommand="{Binding OnUnpinCommand}"
@@ -54,7 +54,7 @@
             <Views:SubPanel x:Name="SettingsSubPanel"
                             RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.2370}"
                             RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
-                            RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.8981}"
+                            RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.8833}"
                             OnFocusedCommand="{Binding SubPanelFocusedCommand}"
                             ItemsSource="{Binding SettingsList}">
                 <Views:SubPanel.ItemTemplate>
index 80e5189..8f17af5 100755 (executable)
@@ -49,7 +49,7 @@ namespace TVHome.Views
         /// <summary>
         /// SubPanel icon's transition height value when it focused.
         /// </summary>
-        private int selectTransitionHeight = SizeUtils.GetHeightSize(146);
+        private int selectTransitionHeight = SizeUtils.GetHeightSize(122);
 
         /// <summary>
         /// A method for getting Panel Buttons