<ViewCell xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TVApps.Controls.AppItemCell">
- <RelativeLayout BackgroundColor="#000000"
- HeightRequest="266"
- WidthRequest="240">
- <Image x:Name="ButtonImage"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6833}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6833}"
- RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1}"
- RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1583}"
- Source="{Binding CurrentStateDescription.IconPath}" />
- <Image x:Name="DimImage"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6833}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6833}"
- RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1}"
- RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1583}"
- Source="img_tizen_apps_list_dimmed_check.png"
- Opacity="0"
- Scale="0" />
- <Image x:Name="CheckImage"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.4}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.4}"
- RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.2417}"
- RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.3}"
- Source="ic_tizen_apps_launcher_pinmark.png"
+ <RelativeLayout BackgroundColor="#000000"
+ HeightRequest="266"
+ WidthRequest="240">
+ <Image x:Name="ButtonImage"
+ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6833}"
+ RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6833}"
+ RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1}"
+ RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1583}"
+ Source="{Binding CurrentStateDescription.IconPath}" />
+ <Image x:Name="DimImage"
+ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6833}"
+ RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6833}"
+ RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1}"
+ RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1583}"
+ Source="img_tizen_apps_list_dimmed_check.png"
+ Opacity="0"
+ Scale="0" />
+ <Image x:Name="CheckImage"
+ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.4}"
+ RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.4}"
+ RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.2417}"
+ RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.3}"
+ Source="ic_tizen_apps_launcher_pinmark.png"
+ Opacity="0" />
+ <Grid x:Name="TextArea"
+ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1333}"
+ RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
+ RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.7744}">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="6*" />
+ <RowDefinition Height="18*" />
+ <RowDefinition Height="8*" />
+ </Grid.RowDefinitions>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="*" />
+ <ColumnDefinition Width="18" />
+ <ColumnDefinition Width="Auto" />
+ <ColumnDefinition Width="18" />
+ <ColumnDefinition Width="*" />
+ </Grid.ColumnDefinitions>
+ <Grid.RowSpacing>0</Grid.RowSpacing>
+ <Grid.ColumnSpacing>10</Grid.ColumnSpacing>
+ <Image x:Name="PinnedIcon"
+ Grid.Row="1"
+ Grid.Column="1"
+ Source="ic_tizen_apps_launcher_checkmark.png"
+ Opacity="0"/>
+ <Label x:Name="ButtonTitle"
+ Grid.Row="0"
+ Grid.RowSpan="3"
+ Grid.Column="2"
+ Opacity="1"
+ FontSize="56"
+ TextColor="White"
+ LineBreakMode="TailTruncation"
+ HorizontalTextAlignment="Center"
+ Text="{Binding CurrentStateDescription.Label}" />
+ <BoxView Grid.Row="1"
+ Grid.Column="3"
Opacity="0" />
- <Grid x:Name="TextArea"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1333}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
- RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.7744}">
- <Grid.RowDefinitions>
- <RowDefinition Height="6*" />
- <RowDefinition Height="18*" />
- <RowDefinition Height="8*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="18" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="18" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowSpacing>0</Grid.RowSpacing>
- <Grid.ColumnSpacing>10</Grid.ColumnSpacing>
- <Image x:Name="PinnedIcon"
- Grid.Row="1"
- Grid.Column="1"
- Source="ic_tizen_apps_launcher_checkmark.png"
- Opacity="0"/>
- <Label x:Name="ButtonTitle"
- Grid.Row="0"
- Grid.RowSpan="3"
- Grid.Column="2"
- Opacity="1"
- FontSize="56"
- TextColor="White"
- LineBreakMode="TailTruncation"
- HorizontalTextAlignment="Center"
- Text="{Binding CurrentStateDescription.Label}" />
- <BoxView Grid.Row="1"
- Grid.Column="3"
- Opacity="0" />
- </Grid>
- <Button x:Name = "ButtonFocusArea"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
- Focused="OnFocused"
- Unfocused="OnUnFocused"
- Clicked="OnClicked"
- Opacity="0" />
- </RelativeLayout>
+ </Grid>
+ <Button x:Name = "ButtonFocusArea"
+ RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
+ RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
+ Focused="OnFocused"
+ Unfocused="OnUnFocused"
+ Clicked="OnClicked"
+ Opacity="0" />
+ </RelativeLayout>
</ViewCell>
x:Class="TVApps.Controls.AppListView"
HorizontalOptions="Fill"
Orientation="Horizontal">
- <Grid x:Name="AppListGrid"
- HorizontalOptions="Start"
- Padding="58,0,58,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="133*" />
- <RowDefinition Height="8*" />
- <RowDefinition Height="133*" />
- </Grid.RowDefinitions>
- <Grid.RowSpacing>0</Grid.RowSpacing>
- <Grid.ColumnSpacing>0</Grid.ColumnSpacing>
+ <Grid x:Name="AppListGrid"
+ HorizontalOptions="Start"
+ Padding="58,0,58,0">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="133*" />
+ <RowDefinition Height="8*" />
+ <RowDefinition Height="133*" />
+ </Grid.RowDefinitions>
+ <Grid.RowSpacing>0</Grid.RowSpacing>
+ <Grid.ColumnSpacing>0</Grid.ColumnSpacing>
- <StackLayout x:Name="AppUpperList"
- Grid.Row="0"
- Orientation="Horizontal"
- HorizontalOptions="Start"
- Spacing="16"/>
+ <StackLayout x:Name="AppUpperList"
+ Grid.Row="0"
+ Orientation="Horizontal"
+ HorizontalOptions="Start"
+ Spacing="16"/>
- <StackLayout x:Name="AppLowerList"
- Grid.Row="2"
- Orientation="Horizontal"
- HorizontalOptions="Start"
- Spacing="16"/>
- </Grid>
+ <StackLayout x:Name="AppLowerList"
+ Grid.Row="2"
+ Orientation="Horizontal"
+ HorizontalOptions="Start"
+ Spacing="16"/>
+ </Grid>
</ScrollView>