<commit_before>﻿<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:xForms="clr-namespace:Syncfusion.SfNumericTextBox.XForms;assembly=Syncfusion.SfNumericTextBox.XForms"
             xmlns:forms1="clr-namespace:FAB.Forms;assembly=FAB.Forms"
             xmlns:platform="clr-namespace:EasyStocks.App.Platform;assembly=easyStocks.mobile"
             xmlns:easyStocks="clr-namespace:EasyStocks;assembly=easyStocks.common"
             xmlns:xForms1="clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms"
             x:Class="EasyStocks.View.AccountItemEditView">
  <RelativeLayout>
    <Grid
      RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
      RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}">
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
      </Grid.RowDefinitions>
      <!-- 
      1. on top we have the name of the share, the daily change in percent and absolute.
      2. then we have a list with all account related data
        - buying date
        - buying rate
        - overall change
        - overall change in percent
        - stop quote reached
       -->

      <!-- header with share name -->
      <Grid
        Grid.Row="0"
        Margin="16,16,16,8">
        <Grid.RowDefinitions>
          <RowDefinition Height="Auto"/>
          <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="50*"/>
          <ColumnDefinition Width="25*"/>
          <ColumnDefinition Width="25*"/>
        </Grid.ColumnDefinitions>
        <!-- share name -->
        <Label
          Grid.Row="0"
          Grid.Column="0"
          Text="{Binding ShareName}"
          TextColor="{x:Static platform:CustomColors.PrimaryTextColor}"
          Style="{StaticResource Title}"/>
        <!-- symbol -->
        <Label
          Grid.Row="1"
          Grid.Column="0"
          Text="{Binding Symbol}"
          Style="{StaticResource Body1}"
          TextColor="{x:Static platform:CustomColors.SecondaryTextColor}"/>
        <!-- current rate -->
        <Label
          Grid.Row="0"
          Grid.RowSpan="2"
          Grid.Column="1"
          Text="{Binding CurrentRate}"
          Style="{StaticResource Title}"
          TextColor="{x:Static platform:CustomColors.PrimaryTextColor}"
          HorizontalTextAlignment="Center"/>
        <!-- change in percent -->
        <Label
          Grid.Row="0"
          Grid.Column="2"
          BackgroundColor="{Binding DailyTrend,Converter={StaticResource RateChangeToColor}}"
          Text="{Binding DailyChangeInPercentString}"
          Style="{StaticResource Title}"
          TextColor="{Binding DailyTrend,Converter={StaticResource RateChangeToTextColorConverter}}"
          HorizontalTextAlignment="Center"/>
        <!-- change absolute -->
        <Label
          Grid.Row="1"
          Grid.Column="2"
          Text="{Binding DailyChangeString}"
          Style="{StaticResource Title}"
          TextColor="{Binding DailyTrend,Converter={StaticResource RateChangeToTextColorConverter}}"
          BackgroundColor="{Binding DailyTrend,Converter={StaticResource RateChangeToColor}}"
          HorizontalTextAlignment="Center"/>
      </Grid>
      <!-- list with data per account data -->
      <xForms1:SfListView
        Grid.Row="1"
        ItemsSource="{Binding AccountItems}"
        SelectionMode="None"
        ItemSize="175">
        <xForms1:SfListView.ItemTemplate>
          <DataTemplate>
            <ViewCell>
              <Grid
                Margin="16,0"
                RowSpacing="0"
                ColumnSpacing="0">
                <Grid.RowDefinitions>
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="Auto"/>
                  <!-- trend data -->
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="Auto"/>
                  <!-- separator -->
                  <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="37*"/>
                  <ColumnDefinition Width="37*"/>
                  <ColumnDefinition Width="25*"/>
                </Grid.ColumnDefinitions>
                <!-- rate -->
                <Label
                  Margin="0"
                  Grid.Row="0"
                  Grid.Column="0"
                  Text="{x:Static easyStocks:EasyStocksStrings.BuyingQuote}"
                  Style="{StaticResource Caption}"/>
                <xForms:SfNumericTextBox
                  Margin="0"<commit_msg>[fix] row height was too narrow for all controls on mobile version<commit_after>﻿<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:xForms="clr-namespace:Syncfusion.SfNumericTextBox.XForms;assembly=Syncfusion.SfNumericTextBox.XForms"
             xmlns:forms1="clr-namespace:FAB.Forms;assembly=FAB.Forms"
             xmlns:platform="clr-namespace:EasyStocks.App.Platform;assembly=easyStocks.mobile"
             xmlns:easyStocks="clr-namespace:EasyStocks;assembly=easyStocks.common"
             xmlns:xForms1="clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms"
             x:Class="EasyStocks.View.AccountItemEditView">
  <RelativeLayout>
    <Grid
      RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
      RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}">
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
      </Grid.RowDefinitions>
      <!-- 
      1. on top we have the name of the share, the daily change in percent and absolute.
      2. then we have a list with all account related data
        - buying date
        - buying rate
        - overall change
        - overall change in percent
        - stop quote reached
       -->

      <!-- header with share name -->
      <Grid
        Grid.Row="0"
        Margin="16,16,16,8">
        <Grid.RowDefinitions>
          <RowDefinition Height="Auto"/>
          <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="50*"/>
          <ColumnDefinition Width="25*"/>
          <ColumnDefinition Width="25*"/>
        </Grid.ColumnDefinitions>
        <!-- share name -->
        <Label
          Grid.Row="0"
          Grid.Column="0"
          Text="{Binding ShareName}"
          TextColor="{x:Static platform:CustomColors.PrimaryTextColor}"
          Style="{StaticResource Title}"/>
        <!-- symbol -->
        <Label
          Grid.Row="1"
          Grid.Column="0"
          Text="{Binding Symbol}"
          Style="{StaticResource Body1}"
          TextColor="{x:Static platform:CustomColors.SecondaryTextColor}"/>
        <!-- current rate -->
        <Label
          Grid.Row="0"
          Grid.RowSpan="2"
          Grid.Column="1"
          Text="{Binding CurrentRate}"
          Style="{StaticResource Title}"
          TextColor="{x:Static platform:CustomColors.PrimaryTextColor}"
          HorizontalTextAlignment="Center"/>
        <!-- change in percent -->
        <Label
          Grid.Row="0"
          Grid.Column="2"
          BackgroundColor="{Binding DailyTrend,Converter={StaticResource RateChangeToColor}}"
          Text="{Binding DailyChangeInPercentString}"
          Style="{StaticResource Title}"
          TextColor="{Binding DailyTrend,Converter={StaticResource RateChangeToTextColorConverter}}"
          HorizontalTextAlignment="Center"/>
        <!-- change absolute -->
        <Label
          Grid.Row="1"
          Grid.Column="2"
          Text="{Binding DailyChangeString}"
          Style="{StaticResource Title}"
          TextColor="{Binding DailyTrend,Converter={StaticResource RateChangeToTextColorConverter}}"
          BackgroundColor="{Binding DailyTrend,Converter={StaticResource RateChangeToColor}}"
          HorizontalTextAlignment="Center"/>
      </Grid>
      <!-- list with data per account data -->
      <xForms1:SfListView
        Grid.Row="1"
        ItemsSource="{Binding AccountItems}"
        SelectionMode="None"
        ItemSize="200">
        <xForms1:SfListView.ItemTemplate>
          <DataTemplate>
            <ViewCell>
              <Grid
                Margin="16,0"
                RowSpacing="0"
                ColumnSpacing="0">
                <Grid.RowDefinitions>
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="Auto"/>
                  <!-- trend data -->
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="Auto"/>
                  <!-- separator -->
                  <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="37*"/>
                  <ColumnDefinition Width="37*"/>
                  <ColumnDefinition Width="25*"/>
                </Grid.ColumnDefinitions>
                <!-- rate -->
                <Label
                  Margin="0"
                  Grid.Row="0"
                  Grid.Column="0"
                  Text="{x:Static easyStocks:EasyStocksStrings.BuyingQuote}"
                  Style="{StaticResource Caption}"/>
                <xForms:SfNumericTextBox
                  Margin="0"
{'fraction_non_alphanumeric': 0.12325604737528857, 'fraction_numerical': 0.012847535882766235, 'mean_word_length': 2.004825090470446, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 2, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6979071', 'n_tokens_mistral': 2688, 'n_tokens_neox': 2446, 'n_words': 436}