InflateException with TextInputLayout and AlertDialog

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

    This happened to me as well, and I came up with a solution inspired by AHTOH's. It requires simply changing the Theme of the TextInputLayout:

    
    
       
    
    
    

    You will need to add the appCompat library if you have not already:

    compile 'com.android.support:appcompat-v7:23.0.1'
    

提交回复
热议问题