I want to create a new TextInputLayout dynamically by I must set hintTextAppearance to work correctly.
How can I set hintTextAppearance dynamically?
I want to create a new TextInputLayout dynamically by I must set hintTextAppearance to work correctly.
How can I set hintTextAppearance dynamically?
 
    
     
    
    hintTextAppearance will be same as you set Text Appearance of EditText.
 
    
            TextInputLayout textInput = findViewById(text input id);
        textInput.setHintTextAppearance(R.style.FloatingHintTextStyle);
       <style name="FloatingHintTextStyle" parent="TextAppearance.Design.Hint">
          <item name="android:textColor">@color/floating_hint_color</item>
       </style>
