Android XML: RuntimeException: Failed to resolve attribute at index 6

后端 未结 10 1898
梦如初夏
梦如初夏 2020-12-01 23:44

Hello dear stackoverflower,

In my project, i am using the new \"android design library\". The problem is, that there is a runtime exception which says(Im trying to c

10条回答
  •  -上瘾入骨i
    2020-12-01 23:48

    I came across this problem as I create my custom view with a custom attribute, but using applicationContext. I think that the application context misses my attribute's information. Changing to the activity's context fixed my problem here.

提交回复
热议问题