Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix xf sample, add TemplatedTaskLoader to sample
- Loading branch information
Showing
21 changed files
with
633 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,62 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<?xaml-comp compile="true" ?> | ||
|
||
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:converters="clr-namespace:Sample.Converters;assembly=Sample" | ||
xmlns:customViews="clr-namespace:Sharpnado.Presentation.Forms.CustomViews;assembly=Sharpnado.TaskLoaderView" | ||
xmlns:localization="clr-namespace:Sample.Localization;assembly=Sample" | ||
xmlns:views="clr-namespace:Sample.Views;assembly=Sample"> | ||
|
||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Colors.xaml" /> | ||
<ResourceDictionary Source="Text.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
|
||
<Style ApplyToDerivedTypes="True" TargetType="ContentPage"> | ||
<Setter Property="Padding" Value="0" /> | ||
<Setter Property="BackgroundColor" Value="{StaticResource TosWindows}" /> | ||
</Style> | ||
|
||
<Style ApplyToDerivedTypes="True" TargetType="Grid"> | ||
<Setter Property="Padding" Value="0" /> | ||
<Setter Property="ColumnSpacing" Value="0" /> | ||
<Setter Property="RowSpacing" Value="0" /> | ||
</Style> | ||
|
||
<Style ApplyToDerivedTypes="True" TargetType="Button"> | ||
<Setter Property="FontSize" Value="16" /> | ||
<Setter Property="FontFamily" Value="{StaticResource FontArcadeClassic}" /> | ||
</Style> | ||
|
||
<OnPlatform x:Key="PickerMargin" x:TypeArguments="Thickness"> | ||
<OnPlatform.Platforms> | ||
<On Platform="Android" Value="0,8,0,5" /> | ||
<On Platform="iOS" Value="0" /> | ||
<On Platform="UWP" Value="0,-13,0,13" /> | ||
</OnPlatform.Platforms> | ||
</OnPlatform> | ||
|
||
<Style ApplyToDerivedTypes="True" TargetType="NavigationPage"> | ||
<Setter Property="BarBackgroundColor" Value="{StaticResource NavigationBarColor}" /> | ||
<Setter Property="BarTextColor" Value="{StaticResource BarTextColor}" /> | ||
</Style> | ||
|
||
<DataTemplate x:Key="GameDataTemplate"> | ||
<views:GameViewCell /> | ||
</DataTemplate> | ||
|
||
<converters:ExceptionToImageSourceConverter x:Key="ExceptionToImageSourceConverter" /> | ||
<converters:ExceptionToErrorMessageConverter x:Key="ExceptionToErrorMessageConverter" /> | ||
<converters:CyclicLoadingLottieConverter x:Key="CyclicLoadingLottieConverter" /> | ||
<converters:ExceptionToLottieConverter x:Key="ExceptionToLottieConverter" /> | ||
<converters:StringToImageSourceResourceConverter x:Key="StringToImageSourceResourceConverter" /> | ||
<converters:ListCountToVisibilityConverter x:Key="ListCountToVisibilityConverter" /> | ||
|
||
<Style TargetType="customViews:TaskLoaderView"> | ||
<Setter Property="AccentColor" Value="{StaticResource PrimaryColor}" /> | ||
<Setter Property="RetryButtonText" Value="{localization:Translate ErrorButton_Retry}" /> | ||
<Setter Property="TextColor" Value="{StaticResource OnSurfaceColor}" /> | ||
</Style> | ||
|
||
</ResourceDictionary> | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<?xaml-comp compile="true" ?> | ||
|
||
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:converters="clr-namespace:Sample.Converters;assembly=Sample" | ||
xmlns:localization="clr-namespace:Sample.Localization;assembly=Sample" | ||
xmlns:views="clr-namespace:Sample.Views;assembly=Sample" | ||
xmlns:taskLoaderView="clr-namespace:Sharpnado.TaskLoaderView;assembly=Sharpnado.TaskLoaderView"> | ||
|
||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Colors.xaml" /> | ||
<ResourceDictionary Source="Text.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
|
||
<Style ApplyToDerivedTypes="True" TargetType="ContentPage"> | ||
<Setter Property="Padding" Value="0" /> | ||
<Setter Property="BackgroundColor" Value="{StaticResource TosWindows}" /> | ||
</Style> | ||
|
||
<Style ApplyToDerivedTypes="True" TargetType="Grid"> | ||
<Setter Property="Padding" Value="0" /> | ||
<Setter Property="ColumnSpacing" Value="0" /> | ||
<Setter Property="RowSpacing" Value="0" /> | ||
</Style> | ||
|
||
<Style ApplyToDerivedTypes="True" TargetType="Button"> | ||
<Setter Property="FontSize" Value="16" /> | ||
<Setter Property="FontFamily" Value="{StaticResource FontArcadeClassic}" /> | ||
</Style> | ||
|
||
<OnPlatform x:Key="PickerMargin" x:TypeArguments="Thickness"> | ||
<OnPlatform.Platforms> | ||
<On Platform="Android" Value="0,8,0,5" /> | ||
<On Platform="iOS" Value="0" /> | ||
<On Platform="UWP" Value="0,-13,0,13" /> | ||
</OnPlatform.Platforms> | ||
</OnPlatform> | ||
|
||
<Style ApplyToDerivedTypes="True" TargetType="NavigationPage"> | ||
<Setter Property="BarBackgroundColor" Value="{StaticResource NavigationBarColor}" /> | ||
<Setter Property="BarTextColor" Value="{StaticResource BarTextColor}" /> | ||
</Style> | ||
|
||
<DataTemplate x:Key="GameDataTemplate"> | ||
<views:GameViewCell /> | ||
</DataTemplate> | ||
|
||
<converters:ExceptionToImageSourceConverter x:Key="ExceptionToImageSourceConverter" /> | ||
<converters:ExceptionToErrorMessageConverter x:Key="ExceptionToErrorMessageConverter" /> | ||
<converters:CyclicLoadingLottieConverter x:Key="CyclicLoadingLottieConverter" /> | ||
<converters:ExceptionToLottieConverter x:Key="ExceptionToLottieConverter" /> | ||
<converters:StringToImageSourceResourceConverter x:Key="StringToImageSourceResourceConverter" /> | ||
<converters:ListCountToVisibilityConverter x:Key="ListCountToVisibilityConverter" /> | ||
|
||
<Style TargetType="taskLoaderView:TaskLoaderView"> | ||
<Setter Property="AccentColor" Value="{StaticResource PrimaryColor}" /> | ||
<Setter Property="RetryButtonText" Value="{localization:Translate ErrorButton_Retry}" /> | ||
<Setter Property="TextColor" Value="{StaticResource OnSurfaceColor}" /> | ||
</Style> | ||
|
||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.