},
"dependencies": {
"ElmSharp": "1.2.2",
- "Microsoft.NETCore.App": "1.1.1",
+ "Microsoft.NETCore.App": "1.1.2",
"Tizen.Applications": "1.5.8",
"Tizen.Content.MediaContent": "1.0.20",
"Tizen.Multimedia": "1.2.0",
- "Tizen.Multimedia.MediaPlayer": "1.0.0",
- "Tizen.Xamarin.Forms.Extension": "2.3.5-r233-004",
- "Xamarin.Forms": "2.3.5-r233-004",
- "Xamarin.Forms.Platform.Tizen": "2.3.5-r233-012"
+ "Tizen.Multimedia.MediaPlayer": "1.0.2",
+ "Tizen.Xamarin.Forms.Extension": "2.3.5-v00010",
+ "Xamarin.Forms": "2.3.5-r233-013",
+ "Xamarin.Forms.Platform.Tizen": "2.3.5-r233-013"
},
"runtimes": {
"win": {},
MusicInfo="{Binding Information}">
<Utils:NinePatch x:Name="Shadow"
- Source=""
+ Source="img_music_list_focused_shadow.9.png"
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand"
+ IsVisible="False"
Aspect="Fill"/>
- <StackLayout Orientation="Vertical" x:Name="TextArea" BackgroundColor="#171717" Spacing="0"
+ <Image x:Name="TextBackground"
+ Source="img_music_list_normal.9.png"
+ Aspect="Fill"
+ RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.2518}"
+ RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.2821}"/>
+ <StackLayout Orientation="Vertical" x:Name="TextArea" 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"
WidthRequest = SizeUtils.GetWidthSize(716);
HeightRequest = SizeUtils.GetHeightSize(270);
+ Shadow.BorderTop = SizeUtils.GetHeightSize(64);
+ Shadow.BorderBottom = SizeUtils.GetHeightSize(64);
+ Shadow.BorderLeft = SizeUtils.GetWidthSize(64);
+ Shadow.BorderRight = SizeUtils.GetWidthSize(64);
+
TextAreaNormalBounds = new Rectangle(SizeUtils.GetWidthSize(202), SizeUtils.GetHeightSize(68), w446, SizeUtils.GetHeightSize(134));
TextAreaFocusedBounds = new Rectangle(SizeUtils.GetWidthSize(206), SizeUtils.GetHeightSize(64), w446, SizeUtils.GetHeightSize(142));
AlbumCover.WidthRequest = w134;
AlbumCover.HeightRequest = h134;
- TextArea.WidthRequest = w446;
- TextArea.HeightRequest = h134;
+ TextBackground.WidthRequest = w446;
+ TextBackground.HeightRequest = h134;
SongTitle.WidthRequest = w382;
SongTitle.HeightRequest = h32;
/// <param name="e">A Focus event's argument</param>
private void OnItemFocused(object sender, FocusEventArgs e)
{
+
Easing easing = new Easing(EasingFunction.EasyIn1);
- TextArea.LayoutTo(TextAreaFocusedBounds, 300, easing);
+ TextBackground.Source = "img_music_list_focused.9.png";
+ TextBackground.LayoutTo(TextAreaFocusedBounds, 300, easing);
AlbumCover.ScaleTo(1.0597, 300, easing);
- TextArea.BackgroundColor = Color.FromHex("ffffff");
SongTitle.On<Xamarin.Forms.PlatformConfiguration.Tizen>().SetFontWeight(FontWeight.Medium);
SongTitle.TextColor = Color.FromHex("000000");
AlbumTitle.Opacity = 0.7;
AlbumTitle.TextColor = Color.FromHex("000000");
SlideEffect.SetHasSlide(AlbumTitle, true);
-
+ Shadow.IsVisible = true;
OnFocusedEventHandler?.Invoke(sender, e);
}
private void OnItemUnfocused(object sender, FocusEventArgs e)
{
Easing easing = new Easing(EasingFunction.EasyIn2);
- TextArea.LayoutTo(TextAreaNormalBounds, 300, easing);
+ TextBackground.LayoutTo(TextAreaNormalBounds, 300, easing);
AlbumCover.ScaleTo(1.0, 300, easing);
- TextArea.BackgroundColor = Color.FromHex("171717");
SongTitle.On<Xamarin.Forms.PlatformConfiguration.Tizen>().SetFontWeight(FontWeight.Normal);
SongTitle.TextColor = Color.FromHex("ffffff");
AlbumTitle.Opacity = 0.5;
AlbumTitle.TextColor = Color.FromHex("ffffff");
SlideEffect.SetHasSlide(AlbumTitle, false);
+ TextBackground.Source = "img_music_list_normal.9.png";
+ Shadow.IsVisible = false;
}
/// <summary>