summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeonjae.Jang <Heonjae.Jang@samsung.com>2017-09-26 10:03:56 +0900
committerHeonjae.Jang <Heonjae.Jang@samsung.com>2017-09-26 10:03:56 +0900
commit2a94397102f36feea87b525cc51d3c0c5b5c2210 (patch)
treea1c1e8762a86a8d27bfc1c02df7ad93da7cf3236
parentedc8b6a706d870ba22fcdce929445e2a8f88c165 (diff)
downloadmediahub-2a94397102f36feea87b525cc51d3c0c5b5c2210.tar.gz
mediahub-2a94397102f36feea87b525cc51d3c0c5b5c2210.tar.bz2
mediahub-2a94397102f36feea87b525cc51d3c0c5b5c2210.zip
Fix Self-Verification issue : Spacing between Music Player and Music List when the count of list is less than 5 (2 columns).
Change-Id: I098525e1b9c5bf36405627636ad1143b3807112b Signed-off-by: Heonjae.Jang <Heonjae.Jang@samsung.com>
-rwxr-xr-xTVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml1
-rwxr-xr-xTVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml.cs57
2 files changed, 39 insertions, 19 deletions
diff --git a/TVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml b/TVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml
index 5988045..7063a83 100755
--- a/TVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml
+++ b/TVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml
@@ -39,6 +39,7 @@
<StackLayout x:Name="MusicTabContents"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.855}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
+ HorizontalOptions="Start"
Orientation="Horizontal">
<Views:MusicPlayer x:Name="MusicPlayer" />
<ScrollView x:Name="MusicTabScrollView"
diff --git a/TVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml.cs b/TVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml.cs
index 1e7bf59..dab15e3 100755
--- a/TVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml.cs
+++ b/TVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml.cs
@@ -256,34 +256,53 @@ namespace TVMediaHub.Tizen.Views
TizenVisualElement.SetNextFocusUpView(FooterNormal.DropdownSource, MusicPlayer.GetFocusArea());
}
- for (var buttonIndex = 0; buttonIndex < list.Count; buttonIndex++)
+ if(list.Count == 1)
{
- var btn = list[buttonIndex].Value;
-
- if (buttonIndex == list.Count - 1)
+ var btn = list[0].Value;
+ if (MusicTabStatus == TabStatus.Delete)
{
- if (MusicTabStatus == TabStatus.Delete)
- {
- TizenVisualElement.SetNextFocusDownView(btn, FooterDelete.GetCancelButton());
- TizenVisualElement.SetNextFocusUpView(FooterDelete.GetCancelButton(), btn);
- }
- else
- {
- TizenVisualElement.SetNextFocusDownView(btn, FooterNormal.ButtonOption);
- TizenVisualElement.SetNextFocusUpView(FooterNormal.ButtonOption, btn);
- }
+ TizenVisualElement.SetNextFocusDownView(btn, FooterDelete.GetOkButton());
+ TizenVisualElement.SetNextFocusUpView(FooterDelete.GetCancelButton(), btn);
+ TizenVisualElement.SetNextFocusUpView(FooterDelete.GetOkButton(), btn);
}
else
{
- if (MusicTabStatus == TabStatus.Delete)
+ TizenVisualElement.SetNextFocusDownView(btn, FooterNormal.DropdownSort);
+ TizenVisualElement.SetNextFocusUpView(FooterNormal.ButtonOption, btn);
+ TizenVisualElement.SetNextFocusUpView(FooterNormal.DropdownSort, btn);
+ }
+ }
+ else
+ {
+ for (var buttonIndex = 0; buttonIndex < list.Count; buttonIndex++)
+ {
+ var btn = list[buttonIndex].Value;
+
+ if (buttonIndex == list.Count - 1)
{
- TizenVisualElement.SetNextFocusDownView(btn, FooterDelete.GetOkButton());
- TizenVisualElement.SetNextFocusUpView(FooterDelete.GetOkButton(), btn);
+ if (MusicTabStatus == TabStatus.Delete)
+ {
+ TizenVisualElement.SetNextFocusDownView(btn, FooterDelete.GetCancelButton());
+ TizenVisualElement.SetNextFocusUpView(FooterDelete.GetCancelButton(), btn);
+ }
+ else
+ {
+ TizenVisualElement.SetNextFocusDownView(btn, FooterNormal.ButtonOption);
+ TizenVisualElement.SetNextFocusUpView(FooterNormal.ButtonOption, btn);
+ }
}
else
{
- TizenVisualElement.SetNextFocusDownView(btn, FooterNormal.DropdownSort);
- TizenVisualElement.SetNextFocusUpView(FooterNormal.DropdownSort, btn);
+ if (MusicTabStatus == TabStatus.Delete)
+ {
+ TizenVisualElement.SetNextFocusDownView(btn, FooterDelete.GetOkButton());
+ TizenVisualElement.SetNextFocusUpView(FooterDelete.GetOkButton(), btn);
+ }
+ else
+ {
+ TizenVisualElement.SetNextFocusDownView(btn, FooterNormal.DropdownSort);
+ TizenVisualElement.SetNextFocusUpView(FooterNormal.DropdownSort, btn);
+ }
}
}
}