From 65dbaa5bd010b13e32204eaab8453ed2c27c769f Mon Sep 17 00:00:00 2001 From: Heonjae Jang Date: Thu, 25 May 2017 12:40:33 +0900 Subject: [PATCH] Change ViewCell to RelativeLayout in TVHome Change-Id: Ie1c42edd4136ddd7b80dbaaca164bba995f95d44 Signed-off-by: Heonjae Jang --- TVHome/TVHome/Controls/MainPanelButton.xaml | 8 +- .../TVHome/Controls/MainPanelButton.xaml.cs | 4 +- TVHome/TVHome/Controls/PanelButton.cs | 2 +- .../Controls/SubPanelAllAppsButton.xaml | 72 ++++++------ .../Controls/SubPanelAllAppsButton.xaml.cs | 6 +- TVHome/TVHome/Controls/SubPanelButton.xaml | 100 +++++++++-------- TVHome/TVHome/Controls/SubPanelButton.xaml.cs | 18 +-- .../Controls/SubPanelSettingButton.xaml | 40 ++++--- .../Controls/SubPanelSettingButton.xaml.cs | 6 +- .../Controls/SubPanelThumbnailButton.xaml | 84 +++++++------- .../Controls/SubPanelThumbnailButton.xaml.cs | 12 +- TVHome/TVHome/Views/MainPage.xaml | 103 ++++++++---------- TVHome/TVHome/Views/MainPanel.xaml.cs | 20 ++-- TVHome/TVHome/Views/Panel.cs | 14 --- TVHome/TVHome/Views/SubPanel.xaml.cs | 24 ++-- TVHome/TVHome/Views/SubThumbnailPanel.xaml.cs | 8 +- 16 files changed, 246 insertions(+), 275 deletions(-) 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 @@ - - - -