Some Kotlin Problem with solutions Every developer need to know

Material Design Textfield in Android

Are you bored with simple Android design and want some attractive look for your Android apps. Then you need to tends towards Material design which give you power to design your app easily by their pre-build library.
I am telling you about material design texfield for Android UI which is one of the best library of Material design.



It is a different beautiful Floating Edit Text

How to Use

Surround your EditText by a MaterialTextField
<com.github.florent37.materialtextfield.MaterialTextField
        android:layout_width="300dp"
        android:layout_height="wrap_content"
        app:mtf_image="@drawable/ic_mail_grey600_24dp"
        >

        <EditText
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:hint="Password"
             android:textColor="#333"
             android:textColorHint="#666"
             android:textSize="15sp" />

</com.github.florent37.materialtextfield.MaterialTextField>

Don't forget to precise a drawable to mtf_image

app:mtf_image="@drawable/ic_mail_grey600_24dp"

Available attributes

<com.github.florent37.materialtextfield.MaterialTextField
    android:layout_width="match_parent"
    android:layout_height="wrap_content"

    app:mtf_cardCollapsedHeight="4dp"
    app:mtf_image="@drawable/ic_mail_grey600_24dp"
    app:mtf_animationDuration="1000"
    app:mtf_labelColor="@android:color/holo_red_dark"
    app:mtf_openKeyboardOnFocus="true">

Download from here

Comments