From: jjie.choi Date: Wed, 19 Apr 2017 12:15:17 +0000 (+0900) Subject: Add animation for IamgeTab item focus. X-Git-Tag: accepted/tizen/unified/20170811.133302~152 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=914a352a7c58cf7afffa3d9f6d530cc4b51444cd;p=profile%2Ftv%2Fapps%2Fdotnet%2Fmediahub.git Add animation for IamgeTab item focus. Change-Id: I7993a21e96e76da8ac69aa66555fb2a20143b0b8 Signed-off-by: jjie.choi --- diff --git a/TVMediaHub/TVMediaHub.Tizen/Views/ImageGroup.xaml b/TVMediaHub/TVMediaHub.Tizen/Views/ImageGroup.xaml index df2ca8b..42d3d27 100644 --- a/TVMediaHub/TVMediaHub.Tizen/Views/ImageGroup.xaml +++ b/TVMediaHub/TVMediaHub.Tizen/Views/ImageGroup.xaml @@ -21,9 +21,6 @@ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.915}" RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.085}"> - - - diff --git a/TVMediaHub/TVMediaHub.Tizen/Views/ImageGroup.xaml.cs b/TVMediaHub/TVMediaHub.Tizen/Views/ImageGroup.xaml.cs index b73f95a..d03b75b 100644 --- a/TVMediaHub/TVMediaHub.Tizen/Views/ImageGroup.xaml.cs +++ b/TVMediaHub/TVMediaHub.Tizen/Views/ImageGroup.xaml.cs @@ -19,6 +19,7 @@ using System.Collections.Generic; using System.ComponentModel; using System.Windows.Input; using TVMediaHub.Tizen.Models; +using TVMediaHub.Tizen.Utils; using Xamarin.Forms; using Xamarin.Forms.Xaml; @@ -72,10 +73,14 @@ namespace TVMediaHub.Tizen.Views Margin = new Thickness(0, 0, Utils.SizeUtils.GetWidthSize(60), 0); GroupTitle.FontSize = Utils.SizeUtils.GetFontSize(30); GroupTitle.HeightRequest = Utils.SizeUtils.GetHeightSize(50); - GroupContentArea.HeightRequest = Utils.SizeUtils.GetHeightSize(544); - GroupContentArea.RowSpacing = Utils.SizeUtils.GetHeightSize(-22); - GroupContentArea.ColumnSpacing = Utils.SizeUtils.GetWidthSize(-22); - GroupTitle.Margin = new Thickness(Utils.SizeUtils.GetWidthSize(22), 0, 0, 0); + GroupContentArea.RowSpacing = Utils.SizeUtils.GetHeightSize(-150); + GroupContentArea.ColumnSpacing = Utils.SizeUtils.GetWidthSize(-150); + GroupContentArea.RowDefinitions.Add(new RowDefinition { Height = SizeUtils.GetHeightSize(332) }); + GroupContentArea.RowDefinitions.Add(new RowDefinition { Height = SizeUtils.GetHeightSize(332) }); + GroupContentArea.RowDefinitions.Add(new RowDefinition { Height = SizeUtils.GetHeightSize(332) }); + + GroupContentArea.Margin = new Thickness(SizeUtils.GetWidthSize(-64), SizeUtils.GetHeightSize(-64), SizeUtils.GetWidthSize(-64), SizeUtils.GetHeightSize(-64)); + } public void SetClickCommand(ICommand command) diff --git a/TVMediaHub/TVMediaHub.Tizen/Views/ImageItem.xaml b/TVMediaHub/TVMediaHub.Tizen/Views/ImageItem.xaml index 3f9a01d..4c04718 100755 --- a/TVMediaHub/TVMediaHub.Tizen/Views/ImageItem.xaml +++ b/TVMediaHub/TVMediaHub.Tizen/Views/ImageItem.xaml @@ -3,52 +3,33 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="TVMediaHub.Tizen.Views.ImageItem" xmlns:Utils="clr-namespace:TVMediaHub.Tizen.Utils" + xmlns:Views="clr-namespace:TVMediaHub.Tizen.Views" ImageInfo="{Binding Information}" IsDeleteMode="{Binding IsDeleteStatus}"> - + + - - + +