InflateException with TextInputLayout and AlertDialog

前端 未结 7 591
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 05:55

I am trying to use the newest TextInputLayout in my DialogFragment.

Here\'s my code:



        
7条回答
  •  囚心锁ツ
    2020-12-11 06:20

    With recent announcement in Google I/O 2018, and refractor of com.android. to androidx. all support libraries got affected too.

    So, you may have to change your dependencies to com.google.android.material:material:<-beta|alpha Version> as of 06th of July 2018, I am using com.google.android.material:material:1.0.0-beta01

    And above the class and has been changed to com.google.android.material.textfield.TextInputLayout and com.google.android.material.textfield.TextInputEditText

    Have a look at this link to get a better idea of what all support libraries got refractored.

    Good luck.

提交回复
热议问题