From 19aaa1f220a6075e76b5de920ebda96899f71e6b Mon Sep 17 00:00:00 2001 From: Yauheni Pakala Date: Wed, 21 Jun 2017 10:10:04 +0300 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 57a5c34..b754842 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,26 @@ # FloatingTextEntry FloatingTextEntry Forms Control for Android/iOS -##Setup +## Setup -###iOS +### iOS In your AppDelegate just add this: -``` +```csharp FloatingTextEntryRenderer.Init (); ``` ### Android -####1 - Setup your app to support material desing +#### 1 - Setup your app to support material desing Look at this tutorial https://blog.xamarin.com/material-design-for-your-xamarin-forms-android-apps/ -####2 - Setup the color +#### 2 - Setup the color In your theme xml add the following nodes: -``` +```xml //Accent Color @color/accent //Inactive stroke color @@ -29,17 +29,17 @@ In your theme xml add the following nodes: @color/primaryDark ``` -####3 - Setup your app +#### 3 - Setup your app Add the fallowing code in your Main Activity "OnStart" method: -``` +```csharp FloatingTextEntryRenderer.Init (); ``` -##Usage +## Usage -``` +```csharp var passEntry = new FloatingTextEntry (); passEntry.Placeholder = "Password"; passEntry.AccentColor = Color.FromHex("#FFC107");