{
GroupTitle.FontSize = Utils.SizeUtils.GetFontSize(28);
GroupTitle.HeightRequest = Utils.SizeUtils.GetHeightSize(50);
- GroupTitle.Margin = new Thickness(SizeUtils.GetWidthSize(12), 0, 0, 0);
+ GroupTitle.Margin = new Thickness(SizeUtils.GetWidthSize(60), 0, 0, 0);
TitleFocusArea.WidthRequest = SizeUtils.GetWidthSize(180);
- GroupContentArea.RowDefinitions.Add(new RowDefinition { Height = SizeUtils.GetHeightSize(134) });
- GroupContentArea.RowDefinitions.Add(new RowDefinition { Height = SizeUtils.GetHeightSize(134) });
- GroupContentArea.RowDefinitions.Add(new RowDefinition { Height = SizeUtils.GetHeightSize(134) });
- GroupContentArea.RowDefinitions.Add(new RowDefinition { Height = SizeUtils.GetHeightSize(134) });
- GroupContentArea.RowSpacing = SizeUtils.GetHeightSize(2);
+ GroupContentArea.RowSpacing = SizeUtils.GetHeightSize(-134);
+ GroupContentArea.ColumnSpacing = SizeUtils.GetWidthSize(-136);
+ GroupContentArea.RowDefinitions.Add(new RowDefinition { Height = SizeUtils.GetHeightSize(270) });
+ GroupContentArea.RowDefinitions.Add(new RowDefinition { Height = SizeUtils.GetHeightSize(270) });
+ GroupContentArea.RowDefinitions.Add(new RowDefinition { Height = SizeUtils.GetHeightSize(270) });
+ GroupContentArea.RowDefinitions.Add(new RowDefinition { Height = SizeUtils.GetHeightSize(270) });
+ GroupContentArea.Margin = new Thickness(SizeUtils.GetWidthSize(-64), SizeUtils.GetHeightSize(-64), SizeUtils.GetWidthSize(-64), SizeUtils.GetHeightSize(-64));
}
/// <summary>
xmlns:Utils="clr-namespace:TVMediaHub.Tizen.Utils"
xmlns:Views="clr-namespace:TVMediaHub.Tizen.Views"
MusicInfo="{Binding Information}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="3*" />
- <RowDefinition Height="2*" />
- <RowDefinition Height="2*" />
- </Grid.RowDefinitions>
- <Image x:Name="AlbumCover"
- Grid.Row="0"
- Grid.RowSpan="3"
- Grid.Column="0"/>
+
+ <StackLayout Orientation="Vertical" x:Name="TextArea" BackgroundColor="#171717" Spacing="0"
+ RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.2518}"
+ RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.2821}">
<Label x:Name="SongTitle"
- Grid.Row="0"
- Grid.Column="1"
+ FontFamily="BreezeSans"
LineBreakMode="TailTruncation"/>
<Label x:Name="Artist"
- Grid.Row="1"
- Grid.Column="1"
- LineBreakMode="TailTruncation"/>
+ FontFamily="BreezeSans"
+ LineBreakMode="TailTruncation"
+ Opacity="0.6"/>
<Label x:Name="AlbumTitle"
- Grid.Row="2"
- Grid.Column="1"
- LineBreakMode="TailTruncation"/>
- </Grid>
+ FontFamily="BreezeSans"
+ LineBreakMode="TailTruncation"
+ Opacity="0.6"/>
+ </StackLayout>
+ <Image x:Name="AlbumCover"
+ RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.2518}"
+ RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.0951}"
+ Source="img_music_nocover_focused.png"/>
<Button x:Name="FocusArea"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
using TVMediaHub.Tizen.Utils;
using TVMediaHub.Tizen.ViewModels;
using Xamarin.Forms;
+using Xamarin.Forms.PlatformConfiguration.TizenSpecific;
using Xamarin.Forms.Xaml;
namespace TVMediaHub.Tizen.Views
}
}
+
+
/// <summary>
/// A constructor
/// Initializes the size of the items that are used in this class
/// </summary>
private void InitializeSize()
{
- WidthRequest = SizeUtils.GetWidthSize(400);
- HeightRequest = SizeUtils.GetHeightSize(134);
+ WidthRequest = SizeUtils.GetWidthSize(716);
+ HeightRequest = SizeUtils.GetHeightSize(270);
AlbumCover.WidthRequest = SizeUtils.GetWidthSize(134);
AlbumCover.HeightRequest = SizeUtils.GetHeightSize(134);
- SongTitle.WidthRequest = SizeUtils.GetWidthSize(266);
- SongTitle.FontSize = SizeUtils.GetFontSize(20);
- Artist.WidthRequest = SizeUtils.GetWidthSize(266);
- Artist.FontSize = SizeUtils.GetFontSize(17);
- AlbumTitle.WidthRequest = SizeUtils.GetWidthSize(266);
- AlbumTitle.FontSize = SizeUtils.GetFontSize(17);
+ TextArea.WidthRequest = SizeUtils.GetWidthSize(446);
+ TextArea.HeightRequest = SizeUtils.GetHeightSize(134);
+ SongTitle.WidthRequest = SizeUtils.GetWidthSize(382);
+ SongTitle.HeightRequest = SizeUtils.GetHeightSize(32);
+ SongTitle.FontSize = SizeUtils.GetFontSize(28);
+ SongTitle.Margin = new Thickness(SizeUtils.GetWidthSize(32), SizeUtils.GetHeightSize(18), SizeUtils.GetWidthSize(32), 0);
+ SongTitle.On<Xamarin.Forms.PlatformConfiguration.Tizen>().SetFontWeight(FontWeight.Normal);
+ Artist.WidthRequest = SizeUtils.GetWidthSize(382);
+ Artist.HeightRequest = SizeUtils.GetHeightSize(32);
+ Artist.Margin = new Thickness(SizeUtils.GetWidthSize(32), SizeUtils.GetHeightSize(12), SizeUtils.GetWidthSize(32), 0);
+ Artist.FontSize = SizeUtils.GetFontSize(28);
+ Artist.On<Xamarin.Forms.PlatformConfiguration.Tizen>().SetFontWeight(FontWeight.Normal);
+ AlbumTitle.WidthRequest = SizeUtils.GetWidthSize(382);
+ AlbumTitle.HeightRequest = SizeUtils.GetHeightSize(28);
+ AlbumTitle.Margin = new Thickness(SizeUtils.GetWidthSize(32), SizeUtils.GetHeightSize(4), SizeUtils.GetWidthSize(32), 0);
+ AlbumTitle.FontSize = SizeUtils.GetFontSize(24);
+ AlbumTitle.On<Xamarin.Forms.PlatformConfiguration.Tizen>().SetFontWeight(FontWeight.Light);
}
/// <summary>
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.0}">
</Views:MusicPlayer>
<ScrollView x:Name="MusicTabScrollView"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.855}"
+ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.7}"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.3}"
Orientation="Horizontal" IsVisible="False">
ImgNoContents.WidthRequest = SizeUtils.GetWidthSize(68);
LabelNoContents.HeightRequest = SizeUtils.GetHeightSize(32);
LabelNoContents.FontSize = SizeUtils.GetFontSize(28);
+ MusicContentView.Padding = new Thickness(0, SizeUtils.GetHeightSize(74));
+ MusicContentView.Spacing = SizeUtils.GetWidthSize(60);
}
/// <summary>