Change AppItemCell layout, Add resource file
authorjjie.choi <jjie.choi@samsung.com>
Tue, 9 May 2017 06:12:46 +0000 (15:12 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:55 +0000 (18:34 +0900)
Change-Id: Ica8873dc6b42088fb44b83874ebc50082f60ee32
Signed-off-by: jjie.choi <jjie.choi@samsung.com>
TVApps/TVApps/Controls/AppItemCell.xaml
TVApps/TVApps/Controls/AppItemCell.xaml.cs
TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_75.png [new file with mode: 0644]

index ce640a3..2bf1a01 100755 (executable)
         </Grid>
 
         <!-- TODO: This BoxView is temporary code for Long Press test -->
-    <BoxView x:Name="ItemDim"
-             VerticalOptions="Start"
-             Color="Black"
-             Opacity="0.0"/>
-
     <Button x:Name = "ButtonFocusArea"
             Focused="OnFocused"
             Unfocused="OnUnFocused"
index 1f08323..0322556 100755 (executable)
@@ -212,8 +212,6 @@ namespace TVApps.Controls
             TextArea.HeightRequest = height32;
             TextArea.TranslationY = height284;
             ButtonTitle.FontSize = SizeUtils.GetFontSize(28);
-            ItemDim.WidthRequest = Width164;
-            ItemDim.HeightRequest = Width164;
 
             ButtonFocusArea.WidthRequest = Width240;
             ButtonFocusArea.HeightRequest = Height332;
@@ -241,8 +239,8 @@ namespace TVApps.Controls
                     this.AbortAnimation("CheckedAnimation");
                     this.Animate("CheckedAnimation", (v) =>
                     {
-                        var scale = 1.195 - (0.22) * v;
-                        var translationY = height300 - (11) * v;
+                        var scale = 1.195 - (0.195) * v;
+                        var translationY = height300 - height16 * v;
                         ButtonImage.Scale = scale;
                         TextArea.TranslationY = translationY;
                     },
@@ -272,10 +270,10 @@ namespace TVApps.Controls
                 ChangeIconSize(IconSize.Normal);
                 ShowOptionMenu(IsShowOptions);
             }
-            else if (e.PropertyName.CompareTo("IsDim") == 0)
-            {
-                ItemDim.FadeTo((IsDim) ? 0.5 : 0.0, 100);
-            }
+            //else if (e.PropertyName.CompareTo("IsDim") == 0)
+            //{
+            //    ItemDim.FadeTo((IsDim) ? 0.5 : 0.0, 100);
+            //}
             else if(e.PropertyName.CompareTo("AppDescription") == 0)
             {
                 ButtonImage.Source = AppDescription.IconPath;
diff --git a/TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_75.png b/TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_75.png
new file mode 100644 (file)
index 0000000..9528728
Binary files /dev/null and b/TVHome/TVHome.TizenTV/res/img_apps_list_dimmed_75.png differ