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
<PackageReference Include="Xama.JTPorts.MaterialTextField" Version="1.0.2" />
paket add Xama.JTPorts.MaterialTextField --version 1.0.2
#r "nuget: Xama.JTPorts.MaterialTextField, 1.0.2"
// 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
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.
How to Install
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 | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid90 is compatible. |
-
MonoAndroid 9.0
- Xamarin.AndroidX.AppCompat (>= 1.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Release 1.0.2 - AndroidX Compatible Google Material Text Field control.