RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonImage, Property=Width, Factor=0.5853}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.3918}"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.3}"
- Source="ic_tizen_apps_launcher_pinmark.png"
+ Source="ic_apps_launcher_pinmark.png"
Opacity="0" />
<Grid x:Name="TextArea"
RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.0936}"
<Image x:Name="PinnedIcon"
Grid.Row="1"
Grid.Column="1"
- Source="ic_tizen_apps_launcher_checkmark.png"
+ Source="ic_apps_launcher_checkmark.png"
Opacity="0"/>
<Label x:Name="ButtonTitle"
Grid.Row="0"
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.RowSpacing>0</Grid.RowSpacing>
- <Control:TVButton x:Name="OptionMenuPinToggleButton"
+ <Button x:Name="OptionMenuPinToggleButton"
Grid.Row="0"
Command="{Binding OptionMenuPinToggleCommand}"
IsEnabled="false"
Text="UNPIN" />
- <Control:TVButton x:Name="OptionMenuDeleteButton"
+ <Button x:Name="OptionMenuDeleteButton"
Grid.Row="1"
Command="{Binding OptionMenuDeleteCommand}"
IsEnabled="false"
}
}
+ int addtionalInfoTextSize;
+
+ public int AddtionalInfoTextSize
+ {
+ get
+ {
+ if (addtionalInfoTextSize == 0)
+ {
+ addtionalInfoTextSize = SizeUtils.GetFontSize(32);
+ }
+
+ return addtionalInfoTextSize;
+ }
+ }
+
/// <summary>
/// Regular text font size
/// </summary>
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:Control="clr-namespace:TVApps.Controls"
x:Class="TVApps.Views.FooterDeleteStatus">
</RelativeLayout>
\ No newline at end of file
*/
using LibTVRefCommonPortable.Utils;
+using System.Windows.Input;
using TVApps.Controls;
using Xamarin.Forms;
/// </summary>
public partial class FooterDeleteStatus : RelativeLayout
{
- private TVButton CancelButton;
+ private Button CancelButton;
+
/// <summary>
/// A constructor
/// </summary>
{
InitializeComponent();
- CancelButton = new TVButton()
+ CancelButton = new Button()
{
Text = "CANCEL",
};
- CancelButton.SetBinding(TVButton.CommandProperty, new Binding("ButtonDeleteCancelCommand"));
+ CancelButton.SetBinding(Button.CommandProperty, new Binding("ButtonDeleteCancelCommand"));
this.Children.Add(CancelButton,
heightConstraint: Constraint.Constant(SizeUtils.GetHeightSize(80)),
public Button GetCancelButton()
{
- return CancelButton.FindByName<Button>("HiddenButton");
+ return CancelButton;
}
}
}
private bool isPopupShowing = false;
private DropdownList SortButton;
- private TVButton OptionButton;
+ private Button OptionButton;
/// <summary>
/// A command will be executed if the Pin option is selected
private void CreateOptionButton()
{
- OptionButton = new TVButton()
+ OptionButton = new Button()
{
Text = "OPTION",
};
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:Control="clr-namespace:TVApps.Controls"
x:Class="TVApps.Views.FooterPinStatus">
</RelativeLayout>
\ No newline at end of file
*/
using LibTVRefCommonPortable.Utils;
+using System.Windows.Input;
using TVApps.Controls;
using Xamarin.Forms;
/// </summary>
public partial class FooterPinStatus : RelativeLayout
{
- private TVButton DoneButton;
- private Label SumOfCheckedAppLabel;
-
+ private Button DoneButton;
+ //private Label SumOfCheckedAppLabel;
+ /*
/// <summary>
/// Identifies the SumOfCheckedApp bindable property
/// </summary>
get { return (int)GetValue(SumOfCheckedAppProperty); }
set { SetValue(SumOfCheckedAppProperty, value); }
}
+ */
/// <summary>
/// A constructor
InitializeComponent();
CreateDoneButton();
- CreateFooterAdditionalText();
+ //CreateFooterAdditionalText();
}
-
+ /*
private void CreateFooterAdditionalText()
{
SetBinding(FooterPinStatus.SumOfCheckedAppProperty, new Binding("SumOfCheckedApp"));
PropertyChanged += FooterPinStatusPropertyChanged;
}
+ */
private void CreateDoneButton()
{
- DoneButton = new TVButton()
+ DoneButton = new Button()
{
- Text = "DONE",
+ Text = "Done",
};
- DoneButton.SetBinding(TVButton.CommandProperty, new Binding("ButtonPinDoneCommand"));
+ DoneButton.SetBinding(Button.CommandProperty, new Binding("ButtonPinDoneCommand"));
this.Children.Add(DoneButton,
heightConstraint: Constraint.Constant(SizeUtils.GetHeightSize(80)),
widthConstraint: Constraint.Constant(SizeUtils.GetWidthSize(300)),
yConstraint: Constraint.Constant(SizeUtils.GetHeightSize(762)),
xConstraint: Constraint.Constant(SizeUtils.GetWidthSize(96 + 1130 + 300 + 2)));
- }
+ }
public Button GetDoneButton()
{
- return DoneButton.FindByName<Button>("HiddenButton");
+ return DoneButton;
}
-
+ /*
private void FooterPinStatusPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName.Equals("SumOfCheckedApp"))
{
SumOfCheckedAppLabel.Text = SumOfCheckedApp + " Pinned";
}
- }
+ }*/
}
}
IsEnabledDeletePopup="{Binding IsEnabledDeletePopup}"
IsPinAppRequested="{Binding IsPinAppRequested}"
DeletePopupAppLabel="{Binding DeletePopupAppLabel}"
- DeletePopupCommand="{Binding DeletePopupCommand}">
+ DeletePopupCommand="{Binding DeletePopupCommand}"
+ SumOfCheckedApp="{Binding SumOfCheckedApp}">
<ContentPage.BindingContext>
<ViewModels:MainPageViewModel />
</ContentPage.BindingContext>
<Setter Property="FontFamily" Value="Breeze Sans Regular" />
</Style>
<Style x:Key="backKeyInfoText" TargetType="Label" >
- <Setter Property="TextColor" Value="#99FFFFFF" />
+ <Setter Property="TextColor" Value="#FFFFFF" />
<Setter Property="FontFamily" Value="Breeze Sans Regular" />
+ <Setter Property="Opacity" Value="0.08" />
+ </Style>
+ <Style x:Key="AddionalInfoTextMedium" TargetType="Label" >
+ <Setter Property="TextColor" Value="#FFFFFF" />
+ <Setter Property="FontFamily" Value="Breeze Sans Bold" />
+ <Setter Property="Opacity" Value="0.7" />
+ </Style>
+ <Style x:Key="AddionalInfoTextLight" TargetType="Label" >
+ <Setter Property="TextColor" Value="#FFFFFF" />
+ <Setter Property="FontFamily" Value="Breeze Sans Light" />
+ <Setter Property="Opacity" Value="0.7" />
</Style>
</ResourceDictionary>
</ContentPage.Resources>
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand"
FontSize="{Binding TitleTextSize}"
- Text="APPS" />
+ Text="APPS"
+ x:Name="TitleLabel"/>
+
+ <Grid Grid.Row="0" x:Name="AddtionalInfo" IsVisible="false">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="50*" />
+ <ColumnDefinition Width="389*" />
+ <ColumnDefinition Width="122*" />
+ <ColumnDefinition Width="389*" />
+ <ColumnDefinition Width="50*" />
+ </Grid.ColumnDefinitions>
+ <Grid Grid.Row="0" Grid.Column="2" x:Name="AdditionalInfoText">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="48*" />
+ <ColumnDefinition Width="52*" />
+ </Grid.ColumnDefinitions>
+ <Label Grid.Row="0" Grid.Column="0" x:Name="AdditionalInfoText1"
+ Style="{StaticResource AddionalInfoTextMedium}"
+ HorizontalTextAlignment="Center"
+ VerticalOptions="CenterAndExpand"
+ HorizontalOptions="CenterAndExpand"
+ FontSize="{Binding AddtionalInfoTextSize}" />
+ <Label Grid.Row="0" Grid.Column="1" x:Name="AdditionalInfoText2"
+ Style="{StaticResource AddionalInfoTextLight}"
+ HorizontalTextAlignment="Center"
+ VerticalOptions="CenterAndExpand"
+ HorizontalOptions="CenterAndExpand"
+ FontSize="{Binding AddtionalInfoTextSize}" />
+ </Grid>
+ </Grid>
+
- <Grid Grid.Row="0">
+ <Grid Grid.Row="0" x:Name="Header">
<Grid.RowDefinitions>
<RowDefinition Height="37*" />
<RowDefinition Height="34*" />
Grid.ColumnSpan="2"
VerticalOptions="FillAndExpand"
HorizontalOptions="StartAndExpand"
- Orientation="Horizontal">
+ Orientation="Horizontal"
+ x:Name="backinfo">
<Image x:Name="BackKeyInfoImage"
- Source="ic_tizen_apps_additional_back.png"
+ Source="ic_apps_additional_back.png"
VerticalOptions="Center"/>
<Label x:Name="BackKeyInfo"
Style="{StaticResource backKeyInfoText}"
set { SetValue(DeletePopupCommandProperty, value); }
}
+ /// <summary>
+ /// Identifies the SumOfCheckedApp bindable property
+ /// </summary>
+ public static readonly BindableProperty SumOfCheckedAppProperty = BindableProperty.Create("SumOfCheckedApp", typeof(int), typeof(MainPage), default(int));
+
+ /// <summary>
+ /// Gets or sets count of checked AppItemCell
+ /// </summary>
+ public int SumOfCheckedApp
+ {
+ get { return (int)GetValue(SumOfCheckedAppProperty); }
+ set { SetValue(SumOfCheckedAppProperty, value); }
+ }
+
/*
private async void PlayHideAnimation()
{
FooterPin.IsVisible = false;
FooterDelete.IsVisible = false;
BackKeyInfo.Text = "Quit";
+ AddtionalInfo.IsVisible = false;
+ TitleLabel.IsVisible = true;
AppList.InitializeFocus();
break;
case AppsStatus.Pin:
FooterNormal.IsVisible = false;
FooterPin.IsVisible = true;
FooterDelete.IsVisible = false;
- BackKeyInfo.Text = "Back";
+ AddtionalInfo.IsVisible = true;
+ TitleLabel.IsVisible = false;
+ BackKeyInfo.Text = "Front";
break;
case AppsStatus.Delete:
FooterNormal.IsVisible = false;
FooterPin.IsVisible = false;
FooterDelete.IsVisible = true;
- BackKeyInfo.Text = "Back";
+ AddtionalInfo.IsVisible = true;
+ TitleLabel.IsVisible = false;
+ BackKeyInfo.Text = "Front";
break;
case AppsStatus.LongPress:
FooterNormal.IsVisible = true;
FooterPin.IsVisible = false;
FooterDelete.IsVisible = false;
- BackKeyInfo.Text = "Back";
+ AddtionalInfo.IsVisible = false;
+ TitleLabel.IsVisible = true;
+ BackKeyInfo.Text = "Front";
break;
}
DeletePopupCommand?.Execute(ret);
}
}
+ else if (e.PropertyName.Equals("SumOfCheckedApp"))
+ {
+ AdditionalInfoText1.Text = SumOfCheckedApp.ToString() + " Apps";
+ AdditionalInfoText2.Text = "Checked";
+ }
}
/// <summary>
if (answer)
{
AppControlUtils.SelfTerminate();
- return true;
+ }
+ else
+ {
+ AppList.InitializeFocus();
}
return true;
<Content Include="res\btn_tizen_option_menu_nocontent_bg.9.png" />
<Content Include="res\focus_circle.png" />
<Content Include="res\focus_circle_inverse.png" />
+ <Content Include="res\ic_apps_additional_back.png" />
+ <Content Include="res\ic_apps_launcher_pinmark.png" />
+ <Content Include="res\ic_apps_launcher_checkmark.png" />
<Content Include="res\ic_black.png" />
<Content Include="res\ic_blue.png" />
<Content Include="res\ic_green.png" />