Browse Source

Merge pull request #270 from dotnet-architecture/xamarin

Increased app startup time of Xamarin client.
pull/220/head
David Britch 7 years ago
committed by GitHub
parent
commit
6a1ff1178f
23 changed files with 601 additions and 231 deletions
  1. +125
    -5
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/App.xaml
  2. +10
    -1
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/Controls/AddBasketButton.xaml
  3. +54
    -0
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/Effects/ThemeEffects.cs
  4. +0
    -5
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/LoginView.xaml
  5. +1
    -0
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/eShopOnContainers.Core.csproj
  6. +1
    -4
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/project.json
  7. +1
    -4
      src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Activities/MainActivity.cs
  8. +66
    -0
      src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Effects/BaseContainerEffect.cs
  9. +54
    -0
      src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Effects/CircleEffect.cs
  10. +1
    -0
      src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Effects/EntryLineColorEffect.cs
  11. +116
    -65
      src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Resources/Resource.Designer.cs
  12. +2
    -15
      src/Mobile/eShopOnContainers/eShopOnContainers.Droid/eShopOnContainers.Droid.csproj
  13. +0
    -3
      src/Mobile/eShopOnContainers/eShopOnContainers.Droid/packages.config
  14. +114
    -65
      src/Mobile/eShopOnContainers/eShopOnContainers.TestRunner.Droid/Resources/Resource.Designer.cs
  15. +0
    -12
      src/Mobile/eShopOnContainers/eShopOnContainers.TestRunner.Droid/eShopOnContainers.TestRunner.Droid.csproj
  16. +0
    -3
      src/Mobile/eShopOnContainers/eShopOnContainers.TestRunner.Droid/packages.config
  17. +0
    -12
      src/Mobile/eShopOnContainers/eShopOnContainers.TestRunner.iOS/eShopOnContainers.TestRunner.iOS.csproj
  18. +0
    -3
      src/Mobile/eShopOnContainers/eShopOnContainers.TestRunner.iOS/packages.config
  19. +1
    -3
      src/Mobile/eShopOnContainers/eShopOnContainers.Windows/project.json
  20. +1
    -13
      src/Mobile/eShopOnContainers/eShopOnContainers.iOS/AppDelegate.cs
  21. +53
    -0
      src/Mobile/eShopOnContainers/eShopOnContainers.iOS/Effects/CircleEffect.cs
  22. +1
    -15
      src/Mobile/eShopOnContainers/eShopOnContainers.iOS/eShopOnContainers.iOS.csproj
  23. +0
    -3
      src/Mobile/eShopOnContainers/eShopOnContainers.iOS/packages.config

+ 125
- 5
src/Mobile/eShopOnContainers/eShopOnContainers.Core/App.xaml View File

@ -1,12 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:light="clr-namespace:Xamarin.Forms.Themes;assembly=Xamarin.Forms.Theme.Light"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:converters="clr-namespace:eShopOnContainers.Core.Converters;assembly=eShopOnContainers.Core"
xmlns:behaviors="clr-namespace:eShopOnContainers.Core.Behaviors;assembly=eShopOnContainers.Core"
x:Class="eShopOnContainers.App">
<Application.Resources>
<ResourceDictionary MergedWith="light:LightThemeResources">
<ResourceDictionary>
<!-- COLORS -->
<Color x:Key="WhiteColor">#ffffff</Color>
@ -18,6 +17,69 @@
<Color x:Key="DarkGreenColor">#00857D</Color>
<Color x:Key="GrayColor">#e2e2e2</Color>
<Color x:Key="ErrorColor">#ff5252</Color>
<Color x:Key="TextColor">#757575</Color>
<Color x:Key="InverseTextColor">#FFFFFF</Color>
<Color x:Key="LightTextColor">#979797</Color>
<Color x:Key="iOSDefaultTintColor">#007aff</Color>
<Color x:Key="SeparatorLineColor">#CCCCCC</Color>
<Color x:Key="AndroidDefaultButtonClassBackgroundColor">#C9C9C9</Color>
<Color x:Key="iOSDefaultButtonClassBackgroundColor">Transparent</Color>
<Color x:Key="AndroidDefaultButtonClassBorderColor">Transparent</Color>
<Color x:Key="iOSDefaultButtonClassBorderColor">#007aff</Color>
<Color x:Key="AndroidDefaultButtonClassTextColor">#FFFFFF</Color>
<Color x:Key="iOSDefaultButtonClassTextColor">#007aff</Color>
<Color x:Key="AndroidEntryBackgroundColor">Transparent</Color>
<Color x:Key="iOSEntryBackgroundColor">#FFFFFF</Color>
<Color x:Key="AndroidDefaultAccentColorColor">#1FAECE</Color>
<Color x:Key="AndroidListViewBackgroundColor">Transparent</Color>
<Color x:Key="iOSListViewBackgroundColor">Transparent</Color>
<OnPlatform
x:TypeArguments="Color"
x:Key="ActivityIndicatorColor"
iOS="{ StaticResource iOSDefaultTintColor }" />
<OnPlatform
x:TypeArguments="Color"
x:Key="DefaultButtonClassBackgroundColor"
Android="{ StaticResource AndroidDefaultButtonClassBackgroundColor }"
iOS="{ StaticResource iOSDefaultButtonClassBackgroundColor }" />
<OnPlatform
x:TypeArguments="Color"
x:Key="DefaultButtonClassBorderColor"
Android="{ StaticResource AndroidDefaultButtonClassBorderColor }"
iOS="{ StaticResource iOSDefaultButtonClassBorderColor }" />
<OnPlatform
x:TypeArguments="Color"
x:Key="DefaultButtonClassTextColor"
Android="{ StaticResource AndroidDefaultButtonClassTextColor }"
iOS="{ StaticResource iOSDefaultButtonClassTextColor }" />
<OnPlatform
x:TypeArguments="Color"
x:Key="EntryBackgroundColor"
Android="{ StaticResource AndroidEntryBackgroundColor }"
iOS="{ StaticResource iOSEntryBackgroundColor }" />
<OnPlatform
x:TypeArguments="Color"
x:Key="ThemeListViewBackgroundColor"
Android="{ StaticResource AndroidListViewBackgroundColor }"
iOS="{ StaticResource iOSListViewBackgroundColor }" />
<!-- SIZES -->
<OnPlatform
x:TypeArguments="x:Double"
x:Key="BaseButtonBorderRadius"
iOS="6" />
<OnPlatform
x:TypeArguments="x:Double"
x:Key="BaseButtonBorderWidth"
Android="0"
iOS="0" />
<!-- FONTS -->
<OnPlatform
@ -41,7 +103,18 @@
Android="SourceSansPro-Regular.ttf#Source Sans Pro"
WinPhone="Assets/Fonts/SourceSansPro-Regular.ttf#Source Sans Pro"/>
<!-- FONT SIZES -->
<OnPlatform
x:TypeArguments="x:Double"
x:Key="BaseButtonFontSize"
Android="16"
iOS="18" />
<OnPlatform
x:TypeArguments="x:Double"
x:Key="BaseFontSize"
Android="15"
iOS="16" />
<OnPlatform
x:Key="LittleSize"
x:TypeArguments="x:Double"
@ -97,6 +170,12 @@
iOS="32"
Android="48"
WinPhone="48"/>
<OnPlatform
x:TypeArguments="FontAttributes"
x:Key="BaseButtonFontAttributes"
Android="None"
iOS="Bold" />
<!-- CONVERTERS -->
<converters:CountToBoolConverter x:Key="CountToBoolConverter" />
@ -108,7 +187,7 @@
<converters:ItemsToHeightConverter x:Key="ItemsToHeightConverter" />
<converters:ToUpperConverter x:Key="ToUpperConverter" />
<!-- STYLES -->
<!-- EXPLICIT STYLES -->
<Style x:Key="ValidationErrorLabelStyle"
TargetType="{x:Type Label}">
<Setter Property="TextColor"
@ -180,6 +259,47 @@
</Trigger>
</Style.Triggers>
</Style>
<!-- IMPLICIT STYLES -->
<Style TargetType="Button" ApplyToDerivedTypes="True" CanCascade="True">
<Setter Property="FontSize" Value="{ StaticResource BaseButtonFontSize }" />
<Setter Property="FontAttributes" Value="{ StaticResource BaseButtonFontAttributes }" />
<Setter Property="BorderRadius" Value="{ StaticResource BaseButtonBorderRadius }" />
<Setter Property="BorderWidth" Value="{ StaticResource BaseButtonBorderWidth }" />
<Setter Property="BackgroundColor" Value="{ StaticResource DefaultButtonClassBackgroundColor }" />
<Setter Property="BorderColor" Value="{ StaticResource DefaultButtonClassBorderColor }" />
<Setter Property="TextColor" Value="{ StaticResource DefaultButtonClassTextColor }" />
</Style>
<Style TargetType="Label" ApplyToDerivedTypes="True" CanCascade="True">
<Setter Property="FontSize" Value="{ StaticResource BaseFontSize }" />
</Style>
<Style TargetType="Entry" ApplyToDerivedTypes="True" CanCascade="True">
<Setter Property="TextColor" Value="{ StaticResource TextColor }" />
<Setter Property="PlaceholderColor" Value="{ StaticResource LightTextColor }" />
<Setter Property="BackgroundColor" Value="{ StaticResource EntryBackgroundColor }" />
</Style>
<Style TargetType="ImageCell" ApplyToDerivedTypes="True" CanCascade="True">
<Setter Property="TextColor" Value="{ StaticResource InverseTextColor }" />
<Setter Property="DetailColor" Value="{ StaticResource AccentColor }" />
</Style>
<Style TargetType="TextCell" ApplyToDerivedTypes="True" CanCascade="True">
<Setter Property="TextColor" Value="{ StaticResource InverseTextColor }" />
<Setter Property="DetailColor" Value="{ StaticResource AccentColor }" />
</Style>
<Style TargetType="ListView" ApplyToDerivedTypes="True" CanCascade="True">
<Setter Property="BackgroundColor" Value="{ StaticResource ThemeListViewBackgroundColor }" />
<Setter Property="SeparatorColor" Value="{ StaticResource SeparatorLineColor }" />
<Setter Property="SeparatorVisibility" Value="Default" />
</Style>
<Style TargetType="ActivityIndicator" ApplyToDerivedTypes="True" CanCascade="True">
<Setter Property="Color" Value="{ StaticResource ActivityIndicatorColor }" />
</Style>
<Style TargetType="NavigationPage">
<Setter Property="BarBackgroundColor" Value="{StaticResource GreenColor}"/>


+ 10
- 1
src/Mobile/eShopOnContainers/eShopOnContainers.Core/Controls/AddBasketButton.xaml View File

@ -1,11 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<?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:effects="clr-namespace:eShopOnContainers.Core.Effects"
x:Class="eShopOnContainers.Core.Controls.AddBasketButton">
<ContentView.Resources>
<ResourceDictionary>
<Style TargetType="BoxView" Class="Circle">
<Setter Property="BackgroundColor" Value="{ StaticResource AccentColor }" />
<Setter Property="WidthRequest" Value="34" />
<Setter Property="HeightRequest" Value="34" />
<Setter Property="HorizontalOptions" Value="Start" />
<Setter Property="effects:ThemeEffects.Circle" Value="True" />
</Style>
<Style x:Key="AddBackgroundImageStyle"
TargetType="{x:Type Image}">
<Setter Property="HorizontalOptions"


+ 54
- 0
src/Mobile/eShopOnContainers/eShopOnContainers.Core/Effects/ThemeEffects.cs View File

@ -0,0 +1,54 @@
using System.Collections.Generic;
using System.Linq;
using Xamarin.Forms;
namespace eShopOnContainers.Core.Effects
{
public static class ThemeEffects
{
public static readonly BindableProperty CircleProperty =
BindableProperty.CreateAttached("Circle", typeof(bool), typeof(ThemeEffects), false, propertyChanged: OnChanged<CircleEffect, bool>);
public static bool GetCircle(BindableObject view)
{
return (bool)view.GetValue(CircleProperty);
}
public static void SetCircle(BindableObject view, bool circle)
{
view.SetValue(CircleProperty, circle);
}
private static void OnChanged<TEffect, TProp>(BindableObject bindable, object oldValue, object newValue)
where TEffect : Effect, new()
{
var view = bindable as View;
if (view == null)
{
return;
}
if (EqualityComparer<TProp>.Equals(newValue, default(TProp)))
{
var toRemove = view.Effects.FirstOrDefault(e => e is TEffect);
if (toRemove != null)
{
view.Effects.Remove(toRemove);
}
}
else
{
view.Effects.Add(new TEffect());
}
}
private class CircleEffect : RoutingEffect
{
public CircleEffect()
: base("eShopOnContainers.CircleEffect")
{
}
}
}
}

+ 0
- 5
src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/LoginView.xaml View File

@ -151,11 +151,6 @@
<Label
Text="REGISTER"
TextColor="Gray"/>
<Grid.GestureRecognizers>
<TapGestureRecognizer
Command="{Binding RegisterCommand}"
NumberOfTapsRequired="1" />
</Grid.GestureRecognizers>
</Grid>
<StackLayout
Grid.Column="2"


+ 1
- 0
src/Mobile/eShopOnContainers/eShopOnContainers.Core/eShopOnContainers.Core.csproj View File

@ -192,6 +192,7 @@
<Compile Include="Effects\EntryLineColorEffect.cs" />
<Compile Include="Behaviors\LineColorBehavior.cs" />
<Compile Include="Models\Token\UserToken.cs" />
<Compile Include="Effects\ThemeEffects.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />


+ 1
- 4
src/Mobile/eShopOnContainers/eShopOnContainers.Core/project.json View File

@ -16,10 +16,7 @@
"Xam.Plugins.Settings": "2.6.0.12-beta",
"Xamarin.FFImageLoading": "2.2.9",
"Xamarin.FFImageLoading.Forms": "2.2.9",
"Xamarin.Forms": "2.3.4.231",
"Xamarin.Forms.Pages": "2.3.4.231",
"Xamarin.Forms.Theme.Base": "1.0.0.43-pre1",
"Xamarin.Forms.Theme.Light": "1.0.0.43-pre1"
"Xamarin.Forms": "2.3.4.231"
},
"frameworks": {
".NETPortable,Version=v4.5,Profile=Profile111": {}


+ 1
- 4
src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Activities/MainActivity.cs View File

@ -14,7 +14,7 @@ using Plugin.Permissions;
namespace eShopOnContainers.Droid.Activities
{
[Activity(
Label = "eShopOnContainers",
Label = "eShopOnContainers",
Icon = "@drawable/icon",
Theme = "@style/MainTheme",
MainLauncher = true,
@ -38,9 +38,6 @@ namespace eShopOnContainers.Droid.Activities
CachedImageRenderer.Init();
LoadApplication(new App());
var x = typeof(Xamarin.Forms.Themes.LightThemeResources);
x = typeof(Xamarin.Forms.Themes.Android.UnderlineEffect);
Window window = this.Window;
window.ClearFlags(WindowManagerFlags.TranslucentStatus);
window.AddFlags(WindowManagerFlags.DrawsSystemBarBackgrounds);


+ 66
- 0
src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Effects/BaseContainerEffect.cs View File

@ -0,0 +1,66 @@
using Xamarin.Forms.Platform.Android;
namespace eShopOnContainers.Droid.Effects
{
public abstract class BaseContainerEffect : PlatformEffect
{
private bool _unloaded;
private bool _attached;
protected bool Attached
{
get { return _attached; }
}
protected virtual bool CanBeApplied()
{
return true;
}
protected virtual void OnAttachedInternal()
{
}
protected virtual void OnDetachedInternal()
{
}
protected sealed override void OnAttached()
{
if (CanBeApplied())
{
_attached = true;
Container.ViewDetachedFromWindow -= ContainerViewDetachedFromWindow;
Container.ViewDetachedFromWindow += ContainerViewDetachedFromWindow;
Container.ViewAttachedToWindow -= ContainerViewAttachedToWindow;
Container.ViewAttachedToWindow += ContainerViewAttachedToWindow;
OnAttachedInternal();
}
}
protected sealed override void OnDetached()
{
if (_attached && !_unloaded)
{
_attached = false;
Container.ViewDetachedFromWindow -= ContainerViewDetachedFromWindow;
Container.ViewAttachedToWindow -= ContainerViewAttachedToWindow;
OnDetachedInternal();
}
}
private void ContainerViewDetachedFromWindow(object sender, global::Android.Views.View.ViewDetachedFromWindowEventArgs e)
{
_unloaded = true;
}
private void ContainerViewAttachedToWindow(object sender, global::Android.Views.View.ViewAttachedToWindowEventArgs e)
{
_unloaded = false;
}
}
}

+ 54
- 0
src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Effects/CircleEffect.cs View File

@ -0,0 +1,54 @@
using System;
using Xamarin.Forms;
using eShopOnContainers.Droid.Effects;
using Android.Views;
using Android.Graphics;
[assembly: ExportEffect(typeof(CircleEffect), "CircleEffect")]
namespace eShopOnContainers.Droid.Effects
{
public class CircleEffect : BaseContainerEffect
{
private ViewOutlineProvider _originalProvider;
protected override bool CanBeApplied()
{
return Container != null && (int)global::Android.OS.Build.VERSION.SdkInt >= 21;
}
protected override void OnAttachedInternal()
{
_originalProvider = Container.OutlineProvider;
Container.OutlineProvider = new CircleOutlineProvider();
Container.ClipToOutline = true;
}
protected override void OnDetachedInternal()
{
Container.ClipToOutline = false;
Container.OutlineProvider = _originalProvider;
}
private class CircleOutlineProvider : ViewOutlineProvider
{
public override void GetOutline(Android.Views.View view, Outline outline)
{
double width = view.Width;
double height = view.Height;
if (width <= 0 || height <= 0)
{
return;
}
double min = Math.Min(width, height);
var radius = (float)(min / 2.0);
var layerX = width > min ? (width - min) / 2 : 0;
var layerY = height > min ? (height - min) / 2 : 0;
outline.SetRoundRect(new Rect((int)layerX, (int)layerY, (int)(layerX + min), (int)(layerY + min)), radius);
}
}
}
}

+ 1
- 0
src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Effects/EntryLineColorEffect.cs View File

@ -7,6 +7,7 @@ using eShopOnContainers.Core.Behaviors;
using System.ComponentModel;
using System.Diagnostics;
[assembly: ResolutionGroupName("eShopOnContainers")]
[assembly: ExportEffect(typeof(EntryLineColorEffect), "EntryLineColorEffect")]
namespace eShopOnContainers.Droid.Effects
{


+ 116
- 65
src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Resources/Resource.Designer.cs View File

@ -1,15 +1,15 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
[assembly: global::Android.Runtime.ResourceDesignerAttribute("eShopOnContainers.Droid.Resource", IsApplication=true)]
[assembly: Android.Runtime.ResourceDesignerAttribute("eShopOnContainers.Droid.Resource", IsApplication=true)]
namespace eShopOnContainers.Droid
{
@ -64,6 +64,8 @@ namespace eShopOnContainers.Droid
global::AndroidHUD.Resource.Styleable.ProgressWheel_ahTextColor = global::eShopOnContainers.Droid.Resource.Styleable.ProgressWheel_ahTextColor;
global::AndroidHUD.Resource.Styleable.ProgressWheel_ahTextSize = global::eShopOnContainers.Droid.Resource.Styleable.ProgressWheel_ahTextSize;
global::ModernHttpClient.Resource.String.library_name = global::eShopOnContainers.Droid.Resource.String.library_name;
global::PCLCrypto.Resource.String.ApplicationName = global::eShopOnContainers.Droid.Resource.String.ApplicationName;
global::PCLCrypto.Resource.String.Hello = global::eShopOnContainers.Droid.Resource.String.Hello;
global::Splat.Resource.String.library_name = global::eShopOnContainers.Droid.Resource.String.library_name;
global::Xamarin.Forms.Platform.Android.Resource.Attribute.actionBarSize = global::eShopOnContainers.Droid.Resource.Attribute.actionBarSize;
}
@ -3126,11 +3128,11 @@ namespace eShopOnContainers.Droid
public partial class String
{
// aapt resource value: 0x7f080027
public const int ApplicationName = 2131230759;
// aapt resource value: 0x7f080028
public const int ApplicationName = 2131230760;
// aapt resource value: 0x7f080026
public const int Hello = 2131230758;
// aapt resource value: 0x7f080027
public const int Hello = 2131230759;
// aapt resource value: 0x7f08000f
public const int abc_action_bar_home_description = 2131230735;
@ -3198,8 +3200,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 0x7f080025
public const int character_counter_pattern = 2131230757;
// aapt resource value: 0x7f080028
public const int library_name = 2131230760;
// aapt resource value: 0x7f080026
public const int library_name = 2131230758;
// aapt resource value: 0x7f080000
public const int mr_button_content_description = 2131230720;
@ -4397,7 +4399,8 @@ namespace eShopOnContainers.Droid
public partial class Styleable
{
public static int[] ActionBar = new int[] {
public static int[] ActionBar = new int[]
{
2130772007,
2130772009,
2130772010,
@ -4507,13 +4510,15 @@ namespace eShopOnContainers.Droid
// aapt resource value: 5
public const int ActionBar_titleTextStyle = 5;
public static int[] ActionBarLayout = new int[] {
public static int[] ActionBarLayout = new int[]
{
16842931};
// aapt resource value: 0
public const int ActionBarLayout_android_layout_gravity = 0;
public static int[] ActionMenuItemView = new int[] {
public static int[] ActionMenuItemView = new int[]
{
16843071};
// aapt resource value: 0
@ -4521,7 +4526,8 @@ namespace eShopOnContainers.Droid
public static int[] ActionMenuView;
public static int[] ActionMode = new int[] {
public static int[] ActionMode = new int[]
{
2130772007,
2130772013,
2130772014,
@ -4547,7 +4553,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 1
public const int ActionMode_titleTextStyle = 1;
public static int[] ActivityChooserView = new int[] {
public static int[] ActivityChooserView = new int[]
{
2130772035,
2130772036};
@ -4557,7 +4564,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 0
public const int ActivityChooserView_initialActivityCount = 0;
public static int[] AlertDialog = new int[] {
public static int[] AlertDialog = new int[]
{
16842994,
2130772037,
2130772038,
@ -4583,7 +4591,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 4
public const int AlertDialog_singleChoiceItemLayout = 4;
public static int[] AppBarLayout = new int[] {
public static int[] AppBarLayout = new int[]
{
16842964,
2130772032,
2130772215};
@ -4597,7 +4606,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 2
public const int AppBarLayout_expanded = 2;
public static int[] AppBarLayout_LayoutParams = new int[] {
public static int[] AppBarLayout_LayoutParams = new int[]
{
2130772216,
2130772217};
@ -4607,7 +4617,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 1
public const int AppBarLayout_LayoutParams_layout_scrollInterpolator = 1;
public static int[] AppCompatImageView = new int[] {
public static int[] AppCompatImageView = new int[]
{
16843033,
2130772042};
@ -4617,7 +4628,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 1
public const int AppCompatImageView_srcCompat = 1;
public static int[] AppCompatTextView = new int[] {
public static int[] AppCompatTextView = new int[]
{
16842804,
2130772043};
@ -4627,7 +4639,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 1
public const int AppCompatTextView_textAllCaps = 1;
public static int[] AppCompatTheme = new int[] {
public static int[] AppCompatTheme = new int[]
{
16842839,
16842926,
2130772044,
@ -5077,7 +5090,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 3
public const int AppCompatTheme_windowNoTitle = 3;
public static int[] BottomSheetBehavior_Params = new int[] {
public static int[] BottomSheetBehavior_Params = new int[]
{
2130772218,
2130772219};
@ -5087,13 +5101,15 @@ namespace eShopOnContainers.Droid
// aapt resource value: 0
public const int BottomSheetBehavior_Params_behavior_peekHeight = 0;
public static int[] ButtonBarLayout = new int[] {
public static int[] ButtonBarLayout = new int[]
{
2130772154};
// aapt resource value: 0
public const int ButtonBarLayout_allowStacking = 0;
public static int[] CardView = new int[] {
public static int[] CardView = new int[]
{
16843071,
16843072,
2130771995,
@ -5147,7 +5163,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 11
public const int CardView_contentPaddingTop = 11;
public static int[] CollapsingAppBarLayout_LayoutParams = new int[] {
public static int[] CollapsingAppBarLayout_LayoutParams = new int[]
{
2130772220,
2130772221};
@ -5157,7 +5174,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 1
public const int CollapsingAppBarLayout_LayoutParams_layout_collapseParallaxMultiplier = 1;
public static int[] CollapsingToolbarLayout = new int[] {
public static int[] CollapsingToolbarLayout = new int[]
{
2130772009,
2130772222,
2130772223,
@ -5215,7 +5233,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 10
public const int CollapsingToolbarLayout_toolbarId = 10;
public static int[] CompoundButton = new int[] {
public static int[] CompoundButton = new int[]
{
16843015,
2130772155,
2130772156};
@ -5229,7 +5248,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 2
public const int CompoundButton_buttonTintMode = 2;
public static int[] CoordinatorLayout = new int[] {
public static int[] CoordinatorLayout = new int[]
{
2130772235,
2130772236};
@ -5239,7 +5259,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 1
public const int CoordinatorLayout_statusBarBackground = 1;
public static int[] CoordinatorLayout_LayoutParams = new int[] {
public static int[] CoordinatorLayout_LayoutParams = new int[]
{
16842931,
2130772237,
2130772238,
@ -5261,7 +5282,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 3
public const int CoordinatorLayout_LayoutParams_layout_keyline = 3;
public static int[] DesignTheme = new int[] {
public static int[] DesignTheme = new int[]
{
2130772241,
2130772242,
2130772243};
@ -5275,7 +5297,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 2
public const int DesignTheme_textColorError = 2;
public static int[] DrawerArrowToggle = new int[] {
public static int[] DrawerArrowToggle = new int[]
{
2130772157,
2130772158,
2130772159,
@ -5309,7 +5332,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 7
public const int DrawerArrowToggle_thickness = 7;
public static int[] FloatingActionButton = new int[] {
public static int[] FloatingActionButton = new int[]
{
2130772032,
2130772213,
2130772214,
@ -5343,7 +5367,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 7
public const int FloatingActionButton_useCompatPadding = 7;
public static int[] ForegroundLinearLayout = new int[] {
public static int[] ForegroundLinearLayout = new int[]
{
16843017,
16843264,
2130772249};
@ -5357,7 +5382,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 2
public const int ForegroundLinearLayout_foregroundInsidePadding = 2;
public static int[] LinearLayoutCompat = new int[] {
public static int[] LinearLayoutCompat = new int[]
{
16842927,
16842948,
16843046,
@ -5395,7 +5421,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 7
public const int LinearLayoutCompat_showDividers = 7;
public static int[] LinearLayoutCompat_Layout = new int[] {
public static int[] LinearLayoutCompat_Layout = new int[]
{
16842931,
16842996,
16842997,
@ -5413,7 +5440,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 1
public const int LinearLayoutCompat_Layout_android_layout_width = 1;
public static int[] ListPopupWindow = new int[] {
public static int[] ListPopupWindow = new int[]
{
16843436,
16843437};
@ -5423,7 +5451,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 1
public const int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static int[] MediaRouteButton = new int[] {
public static int[] MediaRouteButton = new int[]
{
16843071,
16843072,
2130771994};
@ -5437,7 +5466,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 2
public const int MediaRouteButton_externalRouteEnabledDrawable = 2;
public static int[] MenuGroup = new int[] {
public static int[] MenuGroup = new int[]
{
16842766,
16842960,
16843156,
@ -5463,7 +5493,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 2
public const int MenuGroup_android_visible = 2;
public static int[] MenuItem = new int[] {
public static int[] MenuItem = new int[]
{
16842754,
16842766,
16842960,
@ -5533,7 +5564,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 13
public const int MenuItem_showAsAction = 13;
public static int[] MenuView = new int[] {
public static int[] MenuView = new int[]
{
16842926,
16843052,
16843053,
@ -5567,7 +5599,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 7
public const int MenuView_preserveIconSpacing = 7;
public static int[] NavigationView = new int[] {
public static int[] NavigationView = new int[]
{
16842964,
16842973,
16843039,
@ -5609,7 +5642,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 4
public const int NavigationView_menu = 4;
public static int[] PopupWindow = new int[] {
public static int[] PopupWindow = new int[]
{
16843126,
2130772173};
@ -5619,13 +5653,15 @@ namespace eShopOnContainers.Droid
// aapt resource value: 1
public const int PopupWindow_overlapAnchor = 1;
public static int[] PopupWindowBackgroundState = new int[] {
public static int[] PopupWindowBackgroundState = new int[]
{
2130772174};
// aapt resource value: 0
public const int PopupWindowBackgroundState_state_above_anchor = 0;
public static int[] ProgressWheel = new int[] {
public static int[] ProgressWheel = new int[]
{
2130772284,
2130772285,
2130772286,
@ -5675,7 +5711,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 2
public const int ProgressWheel_ahTextSize = 2;
public static int[] RecyclerView = new int[] {
public static int[] RecyclerView = new int[]
{
16842948,
2130771968,
2130771969,
@ -5697,19 +5734,22 @@ namespace eShopOnContainers.Droid
// aapt resource value: 4
public const int RecyclerView_stackFromEnd = 4;
public static int[] ScrimInsetsFrameLayout = new int[] {
public static int[] ScrimInsetsFrameLayout = new int[]
{
2130772256};
// aapt resource value: 0
public const int ScrimInsetsFrameLayout_insetForeground = 0;
public static int[] ScrollingViewBehavior_Params = new int[] {
public static int[] ScrollingViewBehavior_Params = new int[]
{
2130772257};
// aapt resource value: 0
public const int ScrollingViewBehavior_Params_behavior_overlapTop = 0;
public static int[] SearchView = new int[] {
public static int[] SearchView = new int[]
{
16842970,
16843039,
16843296,
@ -5779,7 +5819,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 12
public const int SearchView_voiceIcon = 12;
public static int[] SnackbarLayout = new int[] {
public static int[] SnackbarLayout = new int[]
{
16843039,
2130772032,
2130772258};
@ -5793,7 +5834,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 2
public const int SnackbarLayout_maxActionInlineWidth = 2;
public static int[] Spinner = new int[] {
public static int[] Spinner = new int[]
{
16842930,
16843126,
16843131,
@ -5815,7 +5857,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 4
public const int Spinner_popupTheme = 4;
public static int[] SwitchCompat = new int[] {
public static int[] SwitchCompat = new int[]
{
16843044,
16843045,
16843074,
@ -5857,7 +5900,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 3
public const int SwitchCompat_track = 3;
public static int[] TabItem = new int[] {
public static int[] TabItem = new int[]
{
16842754,
16842994,
16843087};
@ -5871,7 +5915,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 2
public const int TabItem_android_text = 2;
public static int[] TabLayout = new int[] {
public static int[] TabLayout = new int[]
{
2130772259,
2130772260,
2130772261,
@ -5937,7 +5982,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 9
public const int TabLayout_tabTextColor = 9;
public static int[] TextAppearance = new int[] {
public static int[] TextAppearance = new int[]
{
16842901,
16842902,
16842903,
@ -5975,7 +6021,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 8
public const int TextAppearance_textAllCaps = 8;
public static int[] TextInputLayout = new int[] {
public static int[] TextInputLayout = new int[]
{
16842906,
16843088,
2130772275,
@ -6021,7 +6068,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 2
public const int TextInputLayout_hintTextAppearance = 2;
public static int[] Toolbar = new int[] {
public static int[] Toolbar = new int[]
{
16842927,
16843072,
2130772009,
@ -6123,7 +6171,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 23
public const int Toolbar_titleTextColor = 23;
public static int[] View = new int[] {
public static int[] View = new int[]
{
16842752,
16842970,
2130772210,
@ -6145,7 +6194,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 4
public const int View_theme = 4;
public static int[] ViewBackgroundHelper = new int[] {
public static int[] ViewBackgroundHelper = new int[]
{
16842964,
2130772213,
2130772214};
@ -6159,7 +6209,8 @@ namespace eShopOnContainers.Droid
// aapt resource value: 2
public const int ViewBackgroundHelper_backgroundTintMode = 2;
public static int[] ViewStubCompat = new int[] {
public static int[] ViewStubCompat = new int[]
{
16842960,
16842994,
16842995};


+ 2
- 15
src/Mobile/eShopOnContainers/eShopOnContainers.Droid/eShopOnContainers.Droid.csproj View File

@ -199,18 +199,6 @@
<HintPath>..\..\..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Vector.Drawable.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.Forms.Theme.Android">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Base.1.0.0.43-pre1\lib\MonoAndroid10\Xamarin.Forms.Theme.Android.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.Forms.Theme.Base">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Base.1.0.0.43-pre1\lib\MonoAndroid10\Xamarin.Forms.Theme.Base.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.Forms.Theme.Light">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Light.1.0.0.43-pre1\lib\MonoAndroid10\Xamarin.Forms.Theme.Light.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FormsViewGroup">
<HintPath>..\..\..\..\packages\Xamarin.Forms.2.3.4.231\lib\MonoAndroid10\FormsViewGroup.dll</HintPath>
</Reference>
@ -226,9 +214,6 @@
<Reference Include="Xamarin.Forms.Xaml">
<HintPath>..\..\..\..\packages\Xamarin.Forms.2.3.4.231\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Pages">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Pages.2.3.4.231\lib\MonoAndroid10\Xamarin.Forms.Pages.dll</HintPath>
</Reference>
<Reference Include="System.IO.Compression" />
<Reference Include="Autofac">
<HintPath>..\..\..\..\packages\Autofac.4.5.0\lib\netstandard1.1\Autofac.dll</HintPath>
@ -247,6 +232,8 @@
<Compile Include="Renderers\SlideDownMenuPageRenderer.cs" />
<Compile Include="Resources\Resource.Designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Effects\CircleEffect.cs" />
<Compile Include="Effects\BaseContainerEffect.cs" />
</ItemGroup>
<ItemGroup>
<AndroidAsset Include="..\CommonResources\Fonts\Montserrat-Bold.ttf">


+ 0
- 3
src/Mobile/eShopOnContainers/eShopOnContainers.Droid/packages.config View File

@ -82,7 +82,4 @@
<package id="Xamarin.FFImageLoading" version="2.2.9" targetFramework="monoandroid60" />
<package id="Xamarin.FFImageLoading.Forms" version="2.2.9" targetFramework="monoandroid60" />
<package id="Xamarin.Forms" version="2.3.4.231" targetFramework="monoandroid60" />
<package id="Xamarin.Forms.Pages" version="2.3.4.231" targetFramework="monoandroid60" />
<package id="Xamarin.Forms.Theme.Base" version="1.0.0.43-pre1" targetFramework="monoandroid70" />
<package id="Xamarin.Forms.Theme.Light" version="1.0.0.43-pre1" targetFramework="monoandroid70" />
</packages>

+ 114
- 65
src/Mobile/eShopOnContainers/eShopOnContainers.TestRunner.Droid/Resources/Resource.Designer.cs View File

@ -1,15 +1,15 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
[assembly: global::Android.Runtime.ResourceDesignerAttribute("eShopOnContainers.TestRunner.Droid.Resource", IsApplication=true)]
[assembly: Android.Runtime.ResourceDesignerAttribute("eShopOnContainers.TestRunner.Droid.Resource", IsApplication=true)]
namespace eShopOnContainers.TestRunner.Droid
{
@ -3038,11 +3038,11 @@ namespace eShopOnContainers.TestRunner.Droid
public partial class String
{
// aapt resource value: 0x7f080027
public const int ApplicationName = 2131230759;
// aapt resource value: 0x7f080028
public const int ApplicationName = 2131230760;
// aapt resource value: 0x7f080026
public const int Hello = 2131230758;
// aapt resource value: 0x7f080027
public const int Hello = 2131230759;
// aapt resource value: 0x7f08000f
public const int abc_action_bar_home_description = 2131230735;
@ -3110,8 +3110,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 0x7f080025
public const int character_counter_pattern = 2131230757;
// aapt resource value: 0x7f080028
public const int library_name = 2131230760;
// aapt resource value: 0x7f080026
public const int library_name = 2131230758;
// aapt resource value: 0x7f080000
public const int mr_button_content_description = 2131230720;
@ -4297,7 +4297,8 @@ namespace eShopOnContainers.TestRunner.Droid
public partial class Styleable
{
public static int[] ActionBar = new int[] {
public static int[] ActionBar = new int[]
{
2130772007,
2130772009,
2130772010,
@ -4407,13 +4408,15 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 5
public const int ActionBar_titleTextStyle = 5;
public static int[] ActionBarLayout = new int[] {
public static int[] ActionBarLayout = new int[]
{
16842931};
// aapt resource value: 0
public const int ActionBarLayout_android_layout_gravity = 0;
public static int[] ActionMenuItemView = new int[] {
public static int[] ActionMenuItemView = new int[]
{
16843071};
// aapt resource value: 0
@ -4421,7 +4424,8 @@ namespace eShopOnContainers.TestRunner.Droid
public static int[] ActionMenuView;
public static int[] ActionMode = new int[] {
public static int[] ActionMode = new int[]
{
2130772007,
2130772013,
2130772014,
@ -4447,7 +4451,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 1
public const int ActionMode_titleTextStyle = 1;
public static int[] ActivityChooserView = new int[] {
public static int[] ActivityChooserView = new int[]
{
2130772035,
2130772036};
@ -4457,7 +4462,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 0
public const int ActivityChooserView_initialActivityCount = 0;
public static int[] AlertDialog = new int[] {
public static int[] AlertDialog = new int[]
{
16842994,
2130772037,
2130772038,
@ -4483,7 +4489,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 4
public const int AlertDialog_singleChoiceItemLayout = 4;
public static int[] AppBarLayout = new int[] {
public static int[] AppBarLayout = new int[]
{
16842964,
2130772032,
2130772215};
@ -4497,7 +4504,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 2
public const int AppBarLayout_expanded = 2;
public static int[] AppBarLayout_LayoutParams = new int[] {
public static int[] AppBarLayout_LayoutParams = new int[]
{
2130772216,
2130772217};
@ -4507,7 +4515,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 1
public const int AppBarLayout_LayoutParams_layout_scrollInterpolator = 1;
public static int[] AppCompatImageView = new int[] {
public static int[] AppCompatImageView = new int[]
{
16843033,
2130772042};
@ -4517,7 +4526,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 1
public const int AppCompatImageView_srcCompat = 1;
public static int[] AppCompatTextView = new int[] {
public static int[] AppCompatTextView = new int[]
{
16842804,
2130772043};
@ -4527,7 +4537,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 1
public const int AppCompatTextView_textAllCaps = 1;
public static int[] AppCompatTheme = new int[] {
public static int[] AppCompatTheme = new int[]
{
16842839,
16842926,
2130772044,
@ -4977,7 +4988,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 3
public const int AppCompatTheme_windowNoTitle = 3;
public static int[] BottomSheetBehavior_Params = new int[] {
public static int[] BottomSheetBehavior_Params = new int[]
{
2130772218,
2130772219};
@ -4987,13 +4999,15 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 0
public const int BottomSheetBehavior_Params_behavior_peekHeight = 0;
public static int[] ButtonBarLayout = new int[] {
public static int[] ButtonBarLayout = new int[]
{
2130772154};
// aapt resource value: 0
public const int ButtonBarLayout_allowStacking = 0;
public static int[] CardView = new int[] {
public static int[] CardView = new int[]
{
16843071,
16843072,
2130771995,
@ -5047,7 +5061,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 11
public const int CardView_contentPaddingTop = 11;
public static int[] CollapsingAppBarLayout_LayoutParams = new int[] {
public static int[] CollapsingAppBarLayout_LayoutParams = new int[]
{
2130772220,
2130772221};
@ -5057,7 +5072,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 1
public const int CollapsingAppBarLayout_LayoutParams_layout_collapseParallaxMultiplier = 1;
public static int[] CollapsingToolbarLayout = new int[] {
public static int[] CollapsingToolbarLayout = new int[]
{
2130772009,
2130772222,
2130772223,
@ -5115,7 +5131,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 10
public const int CollapsingToolbarLayout_toolbarId = 10;
public static int[] CompoundButton = new int[] {
public static int[] CompoundButton = new int[]
{
16843015,
2130772155,
2130772156};
@ -5129,7 +5146,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 2
public const int CompoundButton_buttonTintMode = 2;
public static int[] CoordinatorLayout = new int[] {
public static int[] CoordinatorLayout = new int[]
{
2130772235,
2130772236};
@ -5139,7 +5157,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 1
public const int CoordinatorLayout_statusBarBackground = 1;
public static int[] CoordinatorLayout_LayoutParams = new int[] {
public static int[] CoordinatorLayout_LayoutParams = new int[]
{
16842931,
2130772237,
2130772238,
@ -5161,7 +5180,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 3
public const int CoordinatorLayout_LayoutParams_layout_keyline = 3;
public static int[] DesignTheme = new int[] {
public static int[] DesignTheme = new int[]
{
2130772241,
2130772242,
2130772243};
@ -5175,7 +5195,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 2
public const int DesignTheme_textColorError = 2;
public static int[] DrawerArrowToggle = new int[] {
public static int[] DrawerArrowToggle = new int[]
{
2130772157,
2130772158,
2130772159,
@ -5209,7 +5230,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 7
public const int DrawerArrowToggle_thickness = 7;
public static int[] FloatingActionButton = new int[] {
public static int[] FloatingActionButton = new int[]
{
2130772032,
2130772213,
2130772214,
@ -5243,7 +5265,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 7
public const int FloatingActionButton_useCompatPadding = 7;
public static int[] ForegroundLinearLayout = new int[] {
public static int[] ForegroundLinearLayout = new int[]
{
16843017,
16843264,
2130772249};
@ -5257,7 +5280,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 2
public const int ForegroundLinearLayout_foregroundInsidePadding = 2;
public static int[] LinearLayoutCompat = new int[] {
public static int[] LinearLayoutCompat = new int[]
{
16842927,
16842948,
16843046,
@ -5295,7 +5319,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 7
public const int LinearLayoutCompat_showDividers = 7;
public static int[] LinearLayoutCompat_Layout = new int[] {
public static int[] LinearLayoutCompat_Layout = new int[]
{
16842931,
16842996,
16842997,
@ -5313,7 +5338,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 1
public const int LinearLayoutCompat_Layout_android_layout_width = 1;
public static int[] ListPopupWindow = new int[] {
public static int[] ListPopupWindow = new int[]
{
16843436,
16843437};
@ -5323,7 +5349,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 1
public const int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static int[] MediaRouteButton = new int[] {
public static int[] MediaRouteButton = new int[]
{
16843071,
16843072,
2130771994};
@ -5337,7 +5364,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 2
public const int MediaRouteButton_externalRouteEnabledDrawable = 2;
public static int[] MenuGroup = new int[] {
public static int[] MenuGroup = new int[]
{
16842766,
16842960,
16843156,
@ -5363,7 +5391,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 2
public const int MenuGroup_android_visible = 2;
public static int[] MenuItem = new int[] {
public static int[] MenuItem = new int[]
{
16842754,
16842766,
16842960,
@ -5433,7 +5462,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 13
public const int MenuItem_showAsAction = 13;
public static int[] MenuView = new int[] {
public static int[] MenuView = new int[]
{
16842926,
16843052,
16843053,
@ -5467,7 +5497,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 7
public const int MenuView_preserveIconSpacing = 7;
public static int[] NavigationView = new int[] {
public static int[] NavigationView = new int[]
{
16842964,
16842973,
16843039,
@ -5509,7 +5540,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 4
public const int NavigationView_menu = 4;
public static int[] PopupWindow = new int[] {
public static int[] PopupWindow = new int[]
{
16843126,
2130772173};
@ -5519,13 +5551,15 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 1
public const int PopupWindow_overlapAnchor = 1;
public static int[] PopupWindowBackgroundState = new int[] {
public static int[] PopupWindowBackgroundState = new int[]
{
2130772174};
// aapt resource value: 0
public const int PopupWindowBackgroundState_state_above_anchor = 0;
public static int[] ProgressWheel = new int[] {
public static int[] ProgressWheel = new int[]
{
2130772284,
2130772285,
2130772286,
@ -5575,7 +5609,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 2
public const int ProgressWheel_ahTextSize = 2;
public static int[] RecyclerView = new int[] {
public static int[] RecyclerView = new int[]
{
16842948,
2130771968,
2130771969,
@ -5597,19 +5632,22 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 4
public const int RecyclerView_stackFromEnd = 4;
public static int[] ScrimInsetsFrameLayout = new int[] {
public static int[] ScrimInsetsFrameLayout = new int[]
{
2130772256};
// aapt resource value: 0
public const int ScrimInsetsFrameLayout_insetForeground = 0;
public static int[] ScrollingViewBehavior_Params = new int[] {
public static int[] ScrollingViewBehavior_Params = new int[]
{
2130772257};
// aapt resource value: 0
public const int ScrollingViewBehavior_Params_behavior_overlapTop = 0;
public static int[] SearchView = new int[] {
public static int[] SearchView = new int[]
{
16842970,
16843039,
16843296,
@ -5679,7 +5717,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 12
public const int SearchView_voiceIcon = 12;
public static int[] SnackbarLayout = new int[] {
public static int[] SnackbarLayout = new int[]
{
16843039,
2130772032,
2130772258};
@ -5693,7 +5732,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 2
public const int SnackbarLayout_maxActionInlineWidth = 2;
public static int[] Spinner = new int[] {
public static int[] Spinner = new int[]
{
16842930,
16843126,
16843131,
@ -5715,7 +5755,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 4
public const int Spinner_popupTheme = 4;
public static int[] SwitchCompat = new int[] {
public static int[] SwitchCompat = new int[]
{
16843044,
16843045,
16843074,
@ -5757,7 +5798,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 3
public const int SwitchCompat_track = 3;
public static int[] TabItem = new int[] {
public static int[] TabItem = new int[]
{
16842754,
16842994,
16843087};
@ -5771,7 +5813,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 2
public const int TabItem_android_text = 2;
public static int[] TabLayout = new int[] {
public static int[] TabLayout = new int[]
{
2130772259,
2130772260,
2130772261,
@ -5837,7 +5880,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 9
public const int TabLayout_tabTextColor = 9;
public static int[] TextAppearance = new int[] {
public static int[] TextAppearance = new int[]
{
16842901,
16842902,
16842903,
@ -5875,7 +5919,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 8
public const int TextAppearance_textAllCaps = 8;
public static int[] TextInputLayout = new int[] {
public static int[] TextInputLayout = new int[]
{
16842906,
16843088,
2130772275,
@ -5921,7 +5966,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 2
public const int TextInputLayout_hintTextAppearance = 2;
public static int[] Toolbar = new int[] {
public static int[] Toolbar = new int[]
{
16842927,
16843072,
2130772009,
@ -6023,7 +6069,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 23
public const int Toolbar_titleTextColor = 23;
public static int[] View = new int[] {
public static int[] View = new int[]
{
16842752,
16842970,
2130772210,
@ -6045,7 +6092,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 4
public const int View_theme = 4;
public static int[] ViewBackgroundHelper = new int[] {
public static int[] ViewBackgroundHelper = new int[]
{
16842964,
2130772213,
2130772214};
@ -6059,7 +6107,8 @@ namespace eShopOnContainers.TestRunner.Droid
// aapt resource value: 2
public const int ViewBackgroundHelper_backgroundTintMode = 2;
public static int[] ViewStubCompat = new int[] {
public static int[] ViewStubCompat = new int[]
{
16842960,
16842994,
16842995};


+ 0
- 12
src/Mobile/eShopOnContainers/eShopOnContainers.TestRunner.Droid/eShopOnContainers.TestRunner.Droid.csproj View File

@ -129,9 +129,6 @@
<Reference Include="Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Xamarin.Forms.2.3.4.231\lib\MonoAndroid10\Xamarin.Forms.Core.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Pages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Pages.2.3.4.231\lib\MonoAndroid10\Xamarin.Forms.Pages.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Xamarin.Forms.2.3.4.231\lib\MonoAndroid10\Xamarin.Forms.Platform.dll</HintPath>
</Reference>
@ -215,15 +212,6 @@
<Reference Include="OkHttp">
<HintPath>..\..\..\..\packages\modernhttpclient.2.4.2\lib\MonoAndroid\OkHttp.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Theme.Android">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Base.1.0.0.43-pre1\lib\MonoAndroid10\Xamarin.Forms.Theme.Android.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Theme.Base">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Base.1.0.0.43-pre1\lib\MonoAndroid10\Xamarin.Forms.Theme.Base.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Theme.Light">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Light.1.0.0.43-pre1\lib\MonoAndroid10\Xamarin.Forms.Theme.Light.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />


+ 0
- 3
src/Mobile/eShopOnContainers/eShopOnContainers.TestRunner.Droid/packages.config View File

@ -79,9 +79,6 @@
<package id="Xamarin.FFImageLoading" version="2.2.9" targetFramework="monoandroid60" />
<package id="Xamarin.FFImageLoading.Forms" version="2.2.9" targetFramework="monoandroid60" />
<package id="Xamarin.Forms" version="2.3.4.231" targetFramework="monoandroid60" />
<package id="Xamarin.Forms.Pages" version="2.3.4.231" targetFramework="monoandroid60" />
<package id="Xamarin.Forms.Theme.Base" version="1.0.0.43-pre1" targetFramework="monoandroid60" />
<package id="Xamarin.Forms.Theme.Light" version="1.0.0.43-pre1" targetFramework="monoandroid60" />
<package id="xunit.abstractions" version="2.0.0" targetFramework="monoandroid60" />
<package id="xunit.assert" version="2.2.0" targetFramework="monoandroid60" />
<package id="xunit.core" version="2.1.0" targetFramework="monoandroid60" />


+ 0
- 12
src/Mobile/eShopOnContainers/eShopOnContainers.TestRunner.iOS/eShopOnContainers.TestRunner.iOS.csproj View File

@ -139,9 +139,6 @@
<Reference Include="Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Xamarin.Forms.2.3.4.231\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Pages, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Pages.2.3.4.231\lib\Xamarin.iOS10\Xamarin.Forms.Pages.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Xamarin.Forms.2.3.4.231\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll</HintPath>
</Reference>
@ -223,15 +220,6 @@
<Reference Include="ModernHttpClient">
<HintPath>..\..\..\..\packages\modernhttpclient.2.4.2\lib\Xamarin.iOS10\ModernHttpClient.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Theme.Base">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Base.1.0.0.43-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Theme.Base.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Theme.iOS">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Base.1.0.0.43-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Theme.iOS.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Theme.Light">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Light.1.0.0.43-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Theme.Light.dll</HintPath>
</Reference>
<Reference Include="Plugin.Geolocator.Abstractions">
<HintPath>..\..\..\..\packages\Xam.Plugin.Geolocator.3.0.4\lib\Xamarin.iOS10\Plugin.Geolocator.Abstractions.dll</HintPath>
</Reference>


+ 0
- 3
src/Mobile/eShopOnContainers/eShopOnContainers.TestRunner.iOS/packages.config View File

@ -69,9 +69,6 @@
<package id="Xamarin.FFImageLoading" version="2.2.9" targetFramework="xamarinios10" />
<package id="Xamarin.FFImageLoading.Forms" version="2.2.9" targetFramework="xamarinios10" />
<package id="Xamarin.Forms" version="2.3.4.231" targetFramework="xamarinios10" />
<package id="Xamarin.Forms.Pages" version="2.3.4.231" targetFramework="xamarinios10" />
<package id="Xamarin.Forms.Theme.Base" version="1.0.0.43-pre1" targetFramework="xamarinios10" />
<package id="Xamarin.Forms.Theme.Light" version="1.0.0.43-pre1" targetFramework="xamarinios10" />
<package id="xunit.abstractions" version="2.0.0" targetFramework="xamarinios10" />
<package id="xunit.assert" version="2.2.0" targetFramework="xamarinios10" />
<package id="xunit.core" version="2.1.0" targetFramework="xamarinios10" />


+ 1
- 3
src/Mobile/eShopOnContainers/eShopOnContainers.Windows/project.json View File

@ -10,9 +10,7 @@
"Xam.Plugins.Settings": "2.6.0.12-beta",
"Xamarin.FFImageLoading": "2.2.9",
"Xamarin.FFImageLoading.Forms": "2.2.9",
"Xamarin.Forms": "2.3.4.231",
"Xamarin.Forms.Theme.Base": "1.0.0.43-pre1",
"Xamarin.Forms.Theme.Light": "1.0.0.43-pre1"
"Xamarin.Forms": "2.3.4.231"
},
"frameworks": {
"uap10.0": {}


+ 1
- 13
src/Mobile/eShopOnContainers/eShopOnContainers.iOS/AppDelegate.cs View File

@ -4,29 +4,17 @@ using UIKit;
namespace eShopOnContainers.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
LoadApplication(new App());
SlideOverKit.iOS.SlideOverKit.Init();
CachedImageRenderer.Init();
var x = typeof(Xamarin.Forms.Themes.LightThemeResources);
x = typeof(Xamarin.Forms.Themes.iOS.UnderlineEffect);
return base.FinishedLaunching(app, options);
}
}


+ 53
- 0
src/Mobile/eShopOnContainers/eShopOnContainers.iOS/Effects/CircleEffect.cs View File

@ -0,0 +1,53 @@
using System;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using eShopOnContainers.iOS.Effects;
using CoreGraphics;
using CoreAnimation;
[assembly: ExportEffect(typeof(CircleEffect), "CircleEffect")]
namespace eShopOnContainers.iOS.Effects
{
public class CircleEffect : PlatformEffect
{
protected override void OnAttached()
{
UpdateCircle();
}
protected override void OnDetached()
{
Container.Layer.Mask = null;
}
protected override void OnElementPropertyChanged(System.ComponentModel.PropertyChangedEventArgs args)
{
base.OnElementPropertyChanged(args);
if (args.PropertyName == VisualElement.WidthProperty.PropertyName ||
args.PropertyName == VisualElement.HeightProperty.PropertyName)
{
UpdateCircle();
}
}
private void UpdateCircle()
{
double width = ((VisualElement)Element).Width;
double height = ((VisualElement)Element).Height;
if (width <= 0 || height <= 0)
{
return;
}
double min = Math.Min(width, height);
var layerX = width > min ? (width - min) / 2 : 0;
var layerY = height > min ? (height - min) / 2 : 0;
var mask = new CAShapeLayer();
mask.Path = CGPath.EllipseFromRect(new CGRect(layerX, layerY, min, min));
Container.Layer.Mask = mask;
}
}
}

+ 1
- 15
src/Mobile/eShopOnContainers/eShopOnContainers.iOS/eShopOnContainers.iOS.csproj View File

@ -123,6 +123,7 @@
<ITunesArtwork Include="iTunesArtwork" />
<ITunesArtwork Include="iTunesArtwork@2x" />
<None Include="packages.config" />
<Compile Include="Effects\CircleEffect.cs" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\Icon-60%403x.png" />
@ -219,18 +220,6 @@
<Reference Include="WebP.Touch, Version=1.0.6230.37678, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\WebP.Touch.1.0.3\lib\Xamarin.iOS10\WebP.Touch.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Theme.Base, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Base.1.0.0.43-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Theme.Base.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.Forms.Theme.iOS, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Base.1.0.0.43-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Theme.iOS.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.Forms.Theme.Light, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Theme.Light.1.0.0.43-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Theme.Light.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.iOS" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.Net.Http" />
@ -249,9 +238,6 @@
<Reference Include="Xamarin.Forms.Xaml">
<HintPath>..\..\..\..\packages\Xamarin.Forms.2.3.4.231\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Pages">
<HintPath>..\..\..\..\packages\Xamarin.Forms.Pages.2.3.4.231\lib\Xamarin.iOS10\Xamarin.Forms.Pages.dll</HintPath>
</Reference>
<Reference Include="Plugin.Geolocator.Abstractions">
<HintPath>..\..\..\..\packages\Xam.Plugin.Geolocator.3.0.4\lib\Xamarin.iOS10\Plugin.Geolocator.Abstractions.dll</HintPath>
</Reference>


+ 0
- 3
src/Mobile/eShopOnContainers/eShopOnContainers.iOS/packages.config View File

@ -69,7 +69,4 @@
<package id="Xamarin.FFImageLoading" version="2.2.9" targetFramework="xamarinios10" />
<package id="Xamarin.FFImageLoading.Forms" version="2.2.9" targetFramework="xamarinios10" />
<package id="Xamarin.Forms" version="2.3.4.231" targetFramework="xamarinios10" />
<package id="Xamarin.Forms.Pages" version="2.3.4.231" targetFramework="xamarinios10" />
<package id="Xamarin.Forms.Theme.Base" version="1.0.0.43-pre1" targetFramework="xamarinios10" />
<package id="Xamarin.Forms.Theme.Light" version="1.0.0.43-pre1" targetFramework="xamarinios10" />
</packages>

Loading…
Cancel
Save