Saturday, 16 September 2017

Floating EditText


Guys, some of the Andro Coder wants to give the best classic and latest design to their client. Some wants to use floating edittext. It is really very attractive design for using Edittext.

So....what is Floating EditText ?
         It is a simple edittext with some modification, when user click on that edittext to type something, the entered hint goes to upward, this is floating edittext.

How you will implement this Floating EditText ?


1) add one Gradel 

      compile 'com.android.support:design:25.0.1'

2)  Go to your layout ( .xml) file and type the bellow code. 

<android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

<!-- put your code here -->        

</android.support.design.widget.TextInputLayout>

Into put your code section, add EditText tool. Add Hint in that so you can check floating edittext is working or not ?

"Hope you Like my Blog. Is it helpful ? Then follow this blog and suggest to your Andro-Frineds  :) "

0 comments:

Post a Comment