InflateException with TextInputLayout and AlertDialog

前端 未结 7 620
被撕碎了的回忆
被撕碎了的回忆 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:24

    I had similar error:

    android.view.InflateException: Binary XML file line #1: Error inflating class android.support.design.widget.TextInputLayout
    

    Trying to reproduce it for a new project I found that the problem for me was in App Theme! Try to set android:theme field in application tag of Android Manifest like this:

     
    

提交回复
热议问题