Skip to content

Commit

Permalink
nuget sample update
Browse files Browse the repository at this point in the history
  • Loading branch information
masonyc committed Feb 1, 2019
1 parent a2d880c commit 4bc5b2b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 72 deletions.
11 changes: 3 additions & 8 deletions Sample/Nuget/Sample.Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using System;

using Android.App;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace Sample.Droid
Expand All @@ -18,8 +13,8 @@ protected override void OnCreate(Bundle savedInstanceState)
ToolbarResource = Resource.Layout.Toolbar;

base.OnCreate(savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
Xamarin.EnableKeyboardEffect.Droid.Effects.Init(this);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
Xamarin.EnableKeyboardEffect.Platform.Droid.Effects.Init(this);
LoadApplication(new App());
}
}
Expand Down
4 changes: 2 additions & 2 deletions Sample/Nuget/Sample.Android/Sample.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.EnableKeyboardEffect">
<Version>1.0.5</Version>
<Version>1.0.6</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="3.4.0.1029999" />
<PackageReference Include="Xamarin.Forms" Version="3.0.0.446417" />
<PackageReference Include="Xamarin.Android.Support.Design" Version="28.0.0.1" />
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="28.0.0.1" />
<PackageReference Include="Xamarin.Android.Support.v4" Version="28.0.0.1" />
Expand Down
8 changes: 2 additions & 6 deletions Sample/Nuget/Sample.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;

using Foundation;
using Foundation;
using UIKit;

namespace Sample.iOS
Expand All @@ -23,7 +19,7 @@ public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsAppli
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
Xamarin.EnableKeyboardEffect.iOS.Effects.Init();
Xamarin.EnableKeyboardEffect.Platform.iOS.Effects.Init();
LoadApplication(new App());

return base.FinishedLaunching(app, options);
Expand Down
4 changes: 2 additions & 2 deletions Sample/Nuget/Sample.iOS/Sample.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.EnableKeyboardEffect">
<Version>1.0.5</Version>
<Version>1.0.6</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="3.4.0.1029999" />
<PackageReference Include="Xamarin.Forms" Version="3.0.0.446417" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Sample\Sample.csproj">
Expand Down
24 changes: 2 additions & 22 deletions Sample/Nuget/Sample/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,12 @@
<StackLayout VerticalOptions="CenterAndExpand" HorizontalOptions="FillAndExpand">
<Button Clicked="button1_clicked" Text="Focus Button 1"></Button>
<Button Clicked="button2_clicked" Text="Focus Button 2"></Button>
<Entry x:Name="Entry1" Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False" Completed="Entry1_OnCompleted">
<Entry x:Name="Entry1" Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
<Entry x:Name="Entry2" Text="Show Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="True" Completed="Entry2_OnCompleted">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
<Entry x:Name="Entry3" Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False" Completed="Entry3_OnCompleted">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
<Entry x:Name="Entry4" Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False" Completed="Entry4_OnCompleted">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
<Entry x:Name="Entry5" Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False" Completed="Entry5_OnCompleted">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
<Entry x:Name="Entry6" Text="Hide Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="False" Completed="Entry6_OnCompleted">
<Entry x:Name="Entry2" Text="Show Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="True">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
Expand Down
30 changes: 0 additions & 30 deletions Sample/Nuget/Sample/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,5 @@ private void button2_clicked(object sender, EventArgs e)
{
Entry2.Focus();
}

private void Entry1_OnCompleted(object sender, EventArgs e)
{
Entry3.Focus();
}

private void Entry3_OnCompleted(object sender, EventArgs e)
{
Entry4.Focus();
}

private void Entry4_OnCompleted(object sender, EventArgs e)
{
Entry5.Focus();
}

private void Entry5_OnCompleted(object sender, EventArgs e)
{
Entry6.Focus();
}

private void Entry6_OnCompleted(object sender, EventArgs e)
{
Entry2.Focus();
}

private void Entry2_OnCompleted(object sender, EventArgs e)
{
Entry1.Focus();
}
}
}
4 changes: 2 additions & 2 deletions Sample/Nuget/Sample/Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Xamarin.EnableKeyboardEffect" Version="1.0.5" />
<PackageReference Include="Xamarin.Forms" Version="3.4.0.1029999" />
<PackageReference Include="Xamarin.EnableKeyboardEffect" Version="1.0.6" />
<PackageReference Include="Xamarin.Forms" Version="3.0.0.446417" />
</ItemGroup>
</Project>

0 comments on commit 4bc5b2b

Please sign in to comment.