I want to set the hint with java in EditText(which is in TextInputLayout).
Code used for setting hint:
aET = (EditText) findViewById(R.id.
first compile dependency compile 'com.rengwuxian.materialedittext:library:2.1.3'
add this in your xml
add xmlns:app="http://schemas.android.com/apk/res-auto"