Skip to content

Commit

Permalink
Merge pull request #17 from mikepham/development
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
mikepham committed Jun 18, 2015
2 parents 15d5631 + a13ca6c commit 36d5372
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,22 @@ Simply install the NuGet package into your Android project.

Once installed, you will have to call `AppCompatRenderers.EnableAll` inside your OnCreate, after `Forms.Init` is called. This will register all of the AppCompat renderers to replace existing Xamarin.Forms renderers.

```csharp
public class MainActivity : AppCompatFormsApplicationActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);

Forms.Init(this, savedInstanceState);
AppCompatRenderers.EnableAll();

this.LoadApplication(new App());
}
}
```


### Current Renderers
- Button ([AppCompatButton](http://developer.android.com/reference/android/support/v7/widget/AppCompatButton.html))
- Entry ([AppCompatEditText](http://developer.android.com/reference/android/support/v7/widget/AppCompatEditText.html))
Expand Down

0 comments on commit 36d5372

Please sign in to comment.