Xama.JTPorts.MaterialTextField 1.0.2

dotnet add package Xama.JTPorts.MaterialTextField --version 1.0.2
NuGet\Install-Package Xama.JTPorts.MaterialTextField -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xama.JTPorts.MaterialTextField" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xama.JTPorts.MaterialTextField --version 1.0.2
#r "nuget: Xama.JTPorts.MaterialTextField, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xama.JTPorts.MaterialTextField as a Cake Addin
#addin nuget:?package=Xama.JTPorts.MaterialTextField&version=1.0.2

// Install Xama.JTPorts.MaterialTextField as a Cake Tool
#tool nuget:?package=Xama.JTPorts.MaterialTextField&version=1.0.2

Xama.JTPorts.MaterialTextField

platform API License: MIT

Namespace: Xama.JTPorts.MaterialTextField

Google Material Design - Xamarin.Android Text Field. AndroidX Compatible

This is a ported build, converted from Java to C# for use with the Xamarin MonoFramework. There are only minor additions to the original library, these include the removal of various deprecated dependancies.

!gif

How to Install

NugetIcon

Simply add the following Nuget Package to your Xamarin.Android App, and ensure you have the latest AndroidX dependancies installed, if you don't the code will tell you which ones are missing.

  • Install using Package Manager:

Install-Package Xama.JTPorts.MaterialTextField -Version 1.0.2

  • Install .NET CLI:

dotnet add package Xama.JTPorts.MaterialTextField --version 1.0.2

Basic Usage

Create the control inside of your layout and wrap it around a single EditText control.

<Xama.JTPorts.MaterialTextField.MaterialTextField
        android:id="@+id/mtvInput"
        android:layout_marginTop="15dp"
        android:layout_width="300dp"
        android:layout_height="wrap_content"
        app:mtf_labelColor="@android:color/white"
        app:mtf_image="@drawable/iconemail">

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="Email Address"
            android:inputType="textEmailAddress"
            android:textColor="@android:color/black"
            android:textSize="15sp" />

    </Xama.JTPorts.MaterialTextField.MaterialTextField>  

Available Attributes

You can supply the following attributes:

    <attr name="mtf_cardCollapsedHeight" format="dimension"/>
    <attr name="mtf_labelColor" format="color"/>
    <attr name="mtf_image" format="reference"/>
    <attr name="mtf_hasFocus" format="boolean"/>
    <attr name="mtf_animationDuration" format="integer"/>
    <attr name="mtf_openKeyboardOnFocus" format="boolean"/>
    <attr name="mtf_backgroundColor" format="color"/>

These mostly have default values should you decide not to supply them.

Product Compatible and additional computed target framework versions.
MonoAndroid monoandroid90 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 481 4/15/2020
1.0.1 388 4/15/2020
1.0.0 388 4/15/2020

Release 1.0.2 - AndroidX Compatible Google Material Text Field control.