I am trying to create editText having floating hint using Android TextInputLayout.
I want to reuse the same TextInputLayout in two layouts.But in both the layout hint color is different.
I searched through several links and found that we can set hint color in edittext(not the floating hint color) by adding 
android:textColorHint="@color/white" in TextInputLayout.
But how to do it programatically as in other layout color needs to be different
PS: setTextAppearanceHint() is not working.
 
     
     
    