title: How to set default value for TextInputLayout in Android
body: <p>I'm using the <code>TextInputLayout</code> <a href="https://material.io/develop/android/components/text-input-layout/" rel="nofollow noreferrer">from Google's Material Design</a> on Android. I want to set the default text value for the text field.</p>
  
  <p>I know I can set the hint, helper text, and error message, but I want to programatically set the default text value that in other cases would eventually be input by the user.</p>
  
  <p>According to the docs you can technically switch the inner <code>TextInputEditText</code> to a regular <code>EditText</code> but Google does not recommend doing this. Should I explore the risks of doing that or is there a built-in solution I'm missing?</p>