Is there any way to create a textfield in java that will look like one in the picture below?

i want know if i can extends EditText and create my own using custom EditText like floating label EditText
i want make it bordered and the hint display inside the stroke like that shown in the image above.
thanks.
This is material
TextInputLayoutspecifically, outlined Text input layout found here in more detail.