title: How to set maximal length of EditTextPreference of AndroidX Library?
body: <p>Recently, I migrate my android project to AndroidX and I use the EditTextPreference from AndroidX library. Now, I want to set the maximum length of the EditTextPreference to let say 50. I have tried to use:</p>
  
  <pre><code>android:maxLength="50"
  </code></pre>
  
  <p>but it's not working.</p>
  
  <p>It seems that all android namespace won't work with the EditTextPreference and there is no code suggestion so I cannot find any related code to set the maximum length. How can I set the maximum length?</p>