Implement VI for Apps menu options
[profile/tv/apps/dotnet/home.git] / TVApps / TVApps / Controls / AppItemCell.xaml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ViewCell xmlns="http://xamarin.com/schemas/2014/forms"
3           xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4           x:Class="TVApps.Controls.AppItemCell">
5   <RelativeLayout BackgroundColor="#000000"
6              HeightRequest="342"
7              WidthRequest="240">
8     <Image x:Name="ButtonImage"
9            RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.4795}"
10            RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6833}"
11            RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.2923}"
12            RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1583}"
13                  IsVisible="{Binding IsVisible}"
14            Source="{Binding CurrentStateDescription.IconPath}" />
15     <Image x:Name="DimImage"
16            RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonImage, Property=Height, Factor=1}"
17            RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonImage, Property=Width, Factor=1}"
18            RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.2923}"
19            RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1583}"
20            Source="img_tizen_apps_list_dimmed_check.png"
21            Opacity="0"
22            Scale="0" />
23     <Image x:Name="CheckImage"
24            RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonImage, Property=Height, Factor=0.5853}"
25            RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToView, ElementName=ButtonImage, Property=Width, Factor=0.5853}"
26            RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.3918}"
27            RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.3}"
28            Source="ic_tizen_apps_launcher_pinmark.png"
29            Opacity="0" />
30     <Grid x:Name="TextArea"
31           RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1333}"
32           RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
33           RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.8245}">
34       <Grid.RowDefinitions>
35         <RowDefinition Height="6*" />
36         <RowDefinition Height="18*" />
37         <RowDefinition Height="8*" />
38       </Grid.RowDefinitions>
39       <Grid.ColumnDefinitions>
40         <ColumnDefinition Width="*" />
41         <ColumnDefinition Width="18" />
42         <ColumnDefinition Width="Auto" />
43         <ColumnDefinition Width="18" />
44         <ColumnDefinition Width="*" />
45       </Grid.ColumnDefinitions>
46       <Grid.RowSpacing>0</Grid.RowSpacing>
47       <Grid.ColumnSpacing>10</Grid.ColumnSpacing>
48       <Image x:Name="PinnedIcon"
49              Grid.Row="1"
50              Grid.Column="1"
51              Source="ic_tizen_apps_launcher_checkmark.png"
52              Opacity="0"/>
53       <Label x:Name="ButtonTitle"
54              Grid.Row="0"
55              Grid.RowSpan="3"
56              Grid.Column="2"
57              Opacity="1"
58              FontSize="56"
59              TextColor="White"
60              LineBreakMode="TailTruncation"
61              HorizontalTextAlignment="Center"
62              Text="{Binding CurrentStateDescription.Label}" />
63       <BoxView Grid.Row="1"
64                Grid.Column="3"
65                Opacity="0" />
66     </Grid>
67
68     <Grid x:Name="OptionMenuArea"
69           RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.4235}"
70           RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.8666}"
71           RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
72           RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.0667}"
73           >
74       <Grid.RowDefinitions>
75         <RowDefinition Height="*" />
76         <RowDefinition Height="*" />
77       </Grid.RowDefinitions>
78       <Grid.RowSpacing>0</Grid.RowSpacing>
79       <Button Grid.Row="0" Text="UNPIN" />
80       <Button Grid.Row="1" Text="DELETE" />
81     </Grid>
82
83     <!-- This BoxView is temporary code for Long Press test -->
84     <BoxView x:Name="ItemDim"
85              Color="Black"
86              Opacity="0.0"
87              RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
88              RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}" />
89
90     <Button x:Name = "ButtonFocusArea"
91             RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
92             RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
93             Focused="OnFocused"
94             Unfocused="OnUnFocused"
95             Clicked="OnClicked"
96             Opacity="0" />
97   </RelativeLayout>
98 </ViewCell>
99