If you would like to create a Material Like EditText with proper Floating Label as Hint, Error message etc, like in this example, you could use TextInputLayout.