AppList.OnChangeFocusChainingCommand = new Command(() =>
{
MakeFocusChaining();
+ AppList.InitializeFocus();
});
}
FooterNormal.IsVisible = false;
FooterPin.IsVisible = true;
FooterDelete.IsVisible = false;
- AddtionalInfo.IsVisible = true;
- TitleLabel.IsVisible = false;
BackKeyInfo.Text = "Front";
break;
case AppsStatus.Delete:
FooterNormal.IsVisible = false;
FooterPin.IsVisible = false;
FooterDelete.IsVisible = true;
- AddtionalInfo.IsVisible = true;
- TitleLabel.IsVisible = false;
BackKeyInfo.Text = "Front";
break;
case AppsStatus.LongPress:
FooterNormal.IsVisible = true;
FooterPin.IsVisible = false;
FooterDelete.IsVisible = false;
- AddtionalInfo.IsVisible = false;
- TitleLabel.IsVisible = true;
BackKeyInfo.Text = "Front";
break;
}
ret.Add("answer", answer ? "yes" : "no");
DeletePopupCommand?.Execute(ret);
}
+ else
+ {
+ AppList.InitializeFocus();
+ }
}
else if (e.PropertyName.Equals("SumOfCheckedApp"))
{
<Content Include="res\AppIcon.png" />
<Content Include="res\background.jpg" />
<Content Include="res\bg_dimmed.png" />
+ <Content Include="res\btn_home_list_move_left.png" />
+ <Content Include="res\btn_home_list_move_right.png" />
+ <Content Include="res\btn_option_menu_nocontent_bg.9.png" />
<Content Include="res\btn_tizen_dropdown_line_dimmed.9.png" />
<Content Include="res\btn_tizen_dropdown_line_normal.9.png" />
- <Content Include="res\btn_tizen_home_list_move_left_focused.png" />
- <Content Include="res\btn_tizen_home_list_move_left_normal.png" />
- <Content Include="res\btn_tizen_home_list_move_right_focused.png" />
- <Content Include="res\btn_tizen_home_list_move_right_normal.png" />
<Content Include="res\btn_tizen_option_box_dimmed.9.png" />
<Content Include="res\btn_tizen_option_box_normal.9.png" />
<Content Include="res\btn_tizen_option_menu_bg_focused.9.png" />
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.326923}"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.156521}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.06044}"
- Source="btn_tizen_home_list_move_left_focused.png"
+ Source="btn_home_list_move_left.png"
Opacity="0"/>
<Image x:Name="RightBtnImg"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.93956}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.326923}"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Height, Factor=0.156521}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonBox, Property=Width, Factor=0.06044}"
- Source="btn_tizen_home_list_move_right_focused.png"
+ Source="btn_home_list_move_right.png"
Opacity="0"/>
</RelativeLayout>
</Controls:PanelButton>
\ No newline at end of file
App.SetAppPinnedNotificationListener((s, e) =>
{
// TODO : Make this for Move a pinned app/Show pinned apps(scroll to last)
- ChangeCurrentStatus(HomeStatus.SubPanelFocused);
ChangeSelectedPanelName(HomeMenuItem.Apps);
if (e.arg.Length > 0)
{
App.SetHomeKeyListener((e, arg) =>
{
+ if (AppsSubPanel.isMoveMode)
+ {
+ AppsSubPanel.ChangeToDefaultMode();
+ }
+
ToggleIconified();
});
button.OnFocusedCommand = new Command(() =>
{
FocusPanel();
+
+ if (SizeUtils.GetWidthSize((int)button.View.X) - SizeUtils.GetWidthSize((int)PanelScrollView.ScrollX) < 0)
+ {
+ ScrollToLeft();
+ }
+ else if (SizeUtils.GetWidthSize((int)button.View.X) + SizeUtils.GetWidthSize(216) > SizeUtils.GetWidthSize(1920))
+ {
+ ScrollToRight();
+ }
});
button.OnClickedCommand = new Command(() =>
{
}
}
+ private async void ScrollToRight()
+ {
+ double distance = SizeUtils.GetWidthSize((int)PanelScrollView.ScrollX) + SizeUtils.GetWidthSize(216);
+ await Task.Delay(1);
+ await PanelScrollView.ScrollToAsync(distance, 0, true);
+ }
+
+ private async void ScrollToLeft()
+ {
+ double distance = SizeUtils.GetWidthSize((int)PanelScrollView.ScrollX) - SizeUtils.GetWidthSize(216);
+ await Task.Delay(1);
+ await PanelScrollView.ScrollToAsync(distance, 0, true);
+ }
+
/// <summary>
/// A method is called when apps subpanel is changed to move mode and change item's IsEnabled property.
/// </summary>
<Views:Panel xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:Views="clr-namespace:TVHome.Views"
+ xmlns:Controls="clr-namespace:TVHome.Controls"
x:Class="TVHome.Views.SubThumbnailPanel">
<RelativeLayout x:Name="ThumbnailParent">
<ScrollView x:Name="PanelScrollView"
</StackLayout>
</ScrollView>
<RelativeLayout x:Name="NoContentInfo"
- HorizontalOptions="Center"
IsVisible="false"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}">
- <BoxView x:Name="BackgroundBox"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=NoContentInfo ,Property=Height, Factor=1}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=NoContentInfo ,Property=Width, Factor=1}" />
+ <Controls:NinePatchImage
+ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=NoContentInfo ,Property=Height, Factor=0.3}"
+ RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=NoContentInfo ,Property=Width, Factor=0.354167}"
+ RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=NoContentInfo ,Property=Height, Factor=0.1}"
+ RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=NoContentInfo ,Property=Width, Factor=0.33177}"
+ Source="btn_option_menu_nocontent_bg.9.png"
+ Aspect="Fill"
+ BorderTop="2"
+ BorderBottom="2"
+ BorderLeft="2"
+ BorderRight="2"/>
<Label x:Name="Text"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=BackgroundBox ,Property=Height, Factor=0.444444}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=BackgroundBox ,Property=Width, Factor=0.42284}"
- RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=BackgroundBox ,Property=Height, Factor=0.3056}"
- RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=BackgroundBox ,Property=Width, Factor=0.28858}"
- Text="No Content to display"
+ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=NoContentInfo ,Property=Height, Factor=0.3}"
+ RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=NoContentInfo ,Property=Width, Factor=0.354167}"
+ RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToView, ElementName=NoContentInfo ,Property=Height, Factor=0.181818}"
+ RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToView, ElementName=NoContentInfo ,Property=Width, Factor=0.33177}"
HorizontalTextAlignment="Center"
+ VerticalTextAlignment="Center"
+ Text="No Content to display"
FontSize="{Binding NoContentInformationFontSize}"
TextColor="White" />
</RelativeLayout>