Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
<item name="colorAccent">@color/accent</item>
//Inactive stroke color
Expand All @@ -29,17 +29,17 @@ In your theme xml add the following nodes:
<item name="android:textColorHint">@color/primaryDark</item>
```

####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");
Expand Down