Need to know what actually difference between TextInputEditText and TextInputLayout, When should we use one of them.
Both TextInputLayout
and TextInputEditText
are different. As mentioned in the documentation Here the TextInputLayout
and TextInputEditText
are meant to be used like the below example(From official doc)
Also the main difference is when you compare TextInputEditText
with EditText
. The TextInputEditText
provides a hint when when the layout is viewed in landscape mode. This is explained clearly in depth by TWiStErRob. I hope this answers the question. Thank you.