All internet tutorials on TextInputLayout miss this!
So probably the best way to use is to Google for it’s Tutorial
Not counting developer.android.com site, you’ll see numerous renown Android Tutorial on TextInputLayout as below
In this tutorial, I will talk again about Material Design. Google I/O 2015 was an important event for every Android…code.tutsplus.com
Android floating labels were introduced in android design support library to display a floating label over EditText…www.androidhive.info
Android design support library introduced TextInputLayout - floating label and some other important new widget that…www.survivingwithandroid.com
One component of the Design Support Library that we didn't cover in the earlier series on that library was the new…blog.stylingandroid.com
And there are others I believe…
At the point of writing, all of them miss this out… which is a very important piece that should go along with TextInputLayout.
It’s the simple rule of thumb.
TextInputLayout should wrap TextInputEditText instead of the normal EditText
You should get the below warning if you wrap EditText instead.
So What’s the Big Deal?
If you wrap EditText, in Landscape Mode, you’ll get a big box, but the hint is missing.
Instead if you use TextInputEditText, it will look like below
Apparently it’s from a bug reported and fixed…
Library used (appcompat-v7:23.1.1, design:23.1.1): Version used: 23.1.1 Theme used: Theme.AppCompat Devices/Android…code.google.com
You could also get some info of this from
Well… enough said. Just be a good netizen, I’ll drop a note to some of the tutorial site to inform them of this issue. Hopefully they could be corrected.