Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
masonyc authored Dec 12, 2018
1 parent 1a33cd6 commit 360a9ad
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ This effect allows user to show/hide softkeyboard on Android/iOS platform in Xam
|Xamarin.iOS|Yes|iOS 8+| |
|Xamarin.Android|Yes|API 16+|Project should [target Android framework 8.1+](https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/android-api-levels?tabs=vswin#framework)|

## For Android

```csharp
protected override void OnCreate(Bundle savedInstanceState)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;

base.OnCreate(savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
Xamarin.EnableKeyboardEffect.Droid.Effects.Init(this);//need this line to init effect in android
LoadApplication(new App());
}
```

## For iOS

```csharp
Expand Down

0 comments on commit 360a9ad

Please sign in to comment.