MusicTab items layout changed 09/137809/7
authorjjie <jjie.choi@samsung.com>
Mon, 3 Jul 2017 22:38:27 +0000 (07:38 +0900)
committerHeonjae Jang <heonjae.jang@samsung.com>
Mon, 10 Jul 2017 07:27:35 +0000 (07:27 +0000)
Change-Id: Iab674909a9c43ae18d292f86d267005d7aff9cd6
Signed-off-by: jjie <jjie.choi@samsung.com>
TVMediaHub/TVMediaHub.Tizen/TVMediaHub.Tizen.csproj
TVMediaHub/TVMediaHub.Tizen/TVMediaHub.Tizen.project.json
TVMediaHub/TVMediaHub.Tizen/Views/MusicItem.xaml
TVMediaHub/TVMediaHub.Tizen/Views/MusicItem.xaml.cs
TVMediaHub/TVMediaHub.Tizen/res/img_music_list_focused.9.png [new file with mode: 0644]
TVMediaHub/TVMediaHub.Tizen/res/img_music_list_focused_shadow.9.png
TVMediaHub/TVMediaHub.Tizen/res/img_music_list_normal.9.png [new file with mode: 0644]

index 3f8a617..4555817 100755 (executable)
     <Content Include="res\img_gradient_topbottom.9.png" />
     <Content Include="res\img_media_no_contents.png" />
     <Content Include="res\img_movie_unavailable.png" />
+    <Content Include="res\img_music_list_focused_shadow.9.png" />
     <Content Include="res\img_photozoom_gradient.9.png" />
     <Content Include="res\img_stroke.9.png" />
     <Content Include="res\img_stroke2.9.png" />
       </FlavorProperties>
     </VisualStudio>
   </ProjectExtensions>
-</Project>
+</Project>
\ No newline at end of file
index 32e02cd..9d5afbd 100755 (executable)
@@ -7,14 +7,14 @@
   },
   "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": {},
index 077d2da..69c8022 100644 (file)
@@ -7,11 +7,17 @@
                 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"
index 92b2cad..b86cf09 100755 (executable)
@@ -121,14 +121,19 @@ namespace TVMediaHub.Tizen.Views
             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;
@@ -166,11 +171,12 @@ namespace TVMediaHub.Tizen.Views
         /// <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");
@@ -186,7 +192,7 @@ namespace TVMediaHub.Tizen.Views
             AlbumTitle.Opacity = 0.7;
             AlbumTitle.TextColor = Color.FromHex("000000");
             SlideEffect.SetHasSlide(AlbumTitle, true);
-
+            Shadow.IsVisible = true;
             OnFocusedEventHandler?.Invoke(sender, e);
         }
 
@@ -198,10 +204,9 @@ namespace TVMediaHub.Tizen.Views
         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");
@@ -216,6 +221,8 @@ namespace TVMediaHub.Tizen.Views
             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>
diff --git a/TVMediaHub/TVMediaHub.Tizen/res/img_music_list_focused.9.png b/TVMediaHub/TVMediaHub.Tizen/res/img_music_list_focused.9.png
new file mode 100644 (file)
index 0000000..01ad4f2
Binary files /dev/null and b/TVMediaHub/TVMediaHub.Tizen/res/img_music_list_focused.9.png differ
index 93ba39d..1a2933c 100644 (file)
Binary files a/TVMediaHub/TVMediaHub.Tizen/res/img_music_list_focused_shadow.9.png and b/TVMediaHub/TVMediaHub.Tizen/res/img_music_list_focused_shadow.9.png differ
diff --git a/TVMediaHub/TVMediaHub.Tizen/res/img_music_list_normal.9.png b/TVMediaHub/TVMediaHub.Tizen/res/img_music_list_normal.9.png
new file mode 100644 (file)
index 0000000..25dd1ec
Binary files /dev/null and b/TVMediaHub/TVMediaHub.Tizen/res/img_music_list_normal.9.png differ