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"
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"
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"
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}">
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"
51 Source="ic_tizen_apps_launcher_checkmark.png"
53 <Label x:Name="ButtonTitle"
60 LineBreakMode="TailTruncation"
61 HorizontalTextAlignment="Center"
62 Text="{Binding CurrentStateDescription.Label}" />
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}"
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" />
83 <!-- This BoxView is temporary code for Long Press test -->
84 <BoxView x:Name="ItemDim"
87 RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
88 RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}" />
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}"
94 Unfocused="OnUnFocused"