起因:
今天使用android design support lib,写个使用textinputlayout的小demo,在画完布局之后一直报错
Error when inflating android.support.design.widget.TextInputLayout
,一直找不到原因,最后百度得知:I've encountered the same problem. Make sure that you're using an AppCompat theme and that you are inflating the view in an AppCompatActivity context.
原地址:点击打开链接