title: TextInputLayout with loading indicator
body: <p>Using <a href="https://developer.android.com/reference/com/google/android/material/textfield/TextInputLayout" rel="nofollow noreferrer">TextInputLayout</a> from <a href="https://www.material.io/develop/android/docs/getting-started/" rel="nofollow noreferrer">Material Design library</a> we can use various <a href="https://www.material.io/develop/android/components/text-input-layout/#pre-packaged-endiconmodes" rel="nofollow noreferrer">end icon modes</a> for password redaction, text clearing and custom mode. Furthermore, if we use any of <code>Widget.MaterialComponents.TextInputLayout.*.ExposedDropdownMenu</code> styles it will automatically apply special end icon mode that displays open and close chevrons.</p>
  
  <p>Example of various icon modes:</p>
  
  <p><a href="https://www.material.io/develop/android/docs/getting-started/" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qUP2e.png" alt="End Icon Modes"></a></p>
  
  <p>Given the variety of use cases for the end icon, we decided to use a loading indicator in the <code>InputTextLayout</code> so that it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Xtuj7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xtuj7.png" alt="Loading indicator mode"></a></p>
  
  <p>How should one proceed to implement it?</p>