Skip to content

Commit

Permalink
sample update
Browse files Browse the repository at this point in the history
  • Loading branch information
masonyc committed Apr 23, 2019
1 parent 0982a16 commit f91a017
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Sample/Nuget/Sample.Android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected override void OnCreate(Bundle savedInstanceState)
base.OnCreate(savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
FormsMaterial.Init(this,savedInstanceState);
Xamarin.EnableKeyboardEffect.Platform.Droid.Effects.Init(this);
Xamarin.KeyboardHelper.Platform.Droid.Effects.Init(this);
LoadApplication(new App());
}
}
Expand Down
6 changes: 3 additions & 3 deletions Sample/Nuget/Sample.Android/Sample.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.EnableKeyboardEffect">
<Version>1.1.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="3.6.0.344457" />
<PackageReference Include="Xamarin.Android.Support.Design" Version="28.0.0.1" />
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="28.0.0.1" />
Expand All @@ -61,6 +58,9 @@
<PackageReference Include="Xamarin.Forms.Visual.Material">
<Version>3.6.0.293080</Version>
</PackageReference>
<PackageReference Include="Xamarin.KeyboardHelper">
<Version>2.0.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
Expand Down
2 changes: 1 addition & 1 deletion Sample/Nuget/Sample.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
FormsMaterial.Init();
Xamarin.EnableKeyboardEffect.Platform.iOS.Effects.Init();
Xamarin.KeyboardHelper.Platform.iOS.Effects.Init();
LoadApplication(new App());

return base.FinishedLaunching(app, options);
Expand Down
6 changes: 3 additions & 3 deletions Sample/Nuget/Sample.iOS/Sample.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@
<Reference Include="Xamarin.iOS" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.EnableKeyboardEffect">
<Version>1.1.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="3.6.0.344457" />
<PackageReference Include="Xamarin.Forms.Visual.Material">
<Version>3.6.0.293080</Version>
</PackageReference>
<PackageReference Include="Xamarin.KeyboardHelper">
<Version>2.0.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Sample\Sample.csproj">
Expand Down
6 changes: 3 additions & 3 deletions Sample/Nuget/Sample/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:effects="clr-namespace:Xamarin.EnableKeyboardEffect;assembly=Xamarin.EnableKeyboardEffect"
xmlns:effects="clr-namespace:Xamarin.KeyboardHelper;assembly=Xamarin.KeyboardHelper"
Visual="Material"
x:Class="Sample.MainPage">

<StackLayout VerticalOptions="CenterAndExpand" HorizontalOptions="FillAndExpand">
<Label x:Name="LabelMessage" />
<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">
<Entry x:Name="Entry1" Text="Hide Keyboard" effects:KeyboardEffect.EnableKeyboard="False">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
</Entry>
<Entry x:Name="Entry2" Text="Show Keyboard" effects:EnableKeyboardEffect.EnableKeyboard="True">
<Entry x:Name="Entry2" Text="Show Keyboard" effects:KeyboardEffect.EnableKeyboard="True">
<Entry.Effects>
<effects:KeyboardEnableEffect/>
</Entry.Effects>
Expand Down
2 changes: 1 addition & 1 deletion Sample/Nuget/Sample/MainPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using Xamarin.EnableKeyboardEffect;
using Xamarin.KeyboardHelper;
using Xamarin.Forms;

namespace Sample
Expand Down
2 changes: 1 addition & 1 deletion 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.1.0" />
<PackageReference Include="Xamarin.Forms" Version="3.6.0.344457" />
<PackageReference Include="Xamarin.KeyboardHelper" Version="2.0.0" />
</ItemGroup>
</Project>

0 comments on commit f91a017

Please sign in to comment.