From: Heonjae Jang Date: Thu, 25 May 2017 03:40:33 +0000 (+0900) Subject: Change ViewCell to RelativeLayout in TVHome X-Git-Tag: submit/tizen/20170808.015446~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65dbaa5bd010b13e32204eaab8453ed2c27c769f;p=profile%2Ftv%2Fapps%2Fdotnet%2Fhome.git Change ViewCell to RelativeLayout in TVHome Change-Id: Ie1c42edd4136ddd7b80dbaaca164bba995f95d44 Signed-off-by: Heonjae Jang --- diff --git a/TVHome/TVHome/Controls/MainPanelButton.xaml b/TVHome/TVHome/Controls/MainPanelButton.xaml index 0468c7d..9f017d4 100755 --- a/TVHome/TVHome/Controls/MainPanelButton.xaml +++ b/TVHome/TVHome/Controls/MainPanelButton.xaml @@ -2,10 +2,9 @@ - + x:Class="TVHome.Controls.MainPanelButton" + HorizontalOptions="Center" + VerticalOptions="Center"> - diff --git a/TVHome/TVHome/Controls/MainPanelButton.xaml.cs b/TVHome/TVHome/Controls/MainPanelButton.xaml.cs index 77cb61b..e7418e0 100755 --- a/TVHome/TVHome/Controls/MainPanelButton.xaml.cs +++ b/TVHome/TVHome/Controls/MainPanelButton.xaml.cs @@ -47,8 +47,8 @@ namespace TVHome.Controls { InitializeComponent(); - ButtonBox.WidthRequest = SizeUtils.GetWidthSize(236); - ButtonBox.HeightRequest = SizeUtils.GetHeightSize(260); + WidthRequest = SizeUtils.GetWidthSize(236); + HeightRequest = SizeUtils.GetHeightSize(260); ButtonTitle.FontSize = SizeUtils.GetFontSize(26); ButtonTitle.On().SetFontWeight(FontWeight.Medium); diff --git a/TVHome/TVHome/Controls/PanelButton.cs b/TVHome/TVHome/Controls/PanelButton.cs index 895eff6..efc0162 100755 --- a/TVHome/TVHome/Controls/PanelButton.cs +++ b/TVHome/TVHome/Controls/PanelButton.cs @@ -24,7 +24,7 @@ namespace TVHome.Controls /// TVHome has two panels, MainPanel and SubPanel. The panels have several panel buttons. /// The class for handling panel button's events /// - public abstract class PanelButton : ViewCell + public abstract class PanelButton : RelativeLayout { public bool isMoveMode; public bool isFocused; diff --git a/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml b/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml index 706b656..8831de0 100755 --- a/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml +++ b/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml @@ -2,41 +2,39 @@ - - - -