R.styleable can not be resolved, why?

后端 未结 6 1862
猫巷女王i
猫巷女王i 2020-12-03 16:58

I have a resources.xml file located under direcotry values/ , That\'s

/values/resources.xml



        
6条回答
  •  忘掉有多难
    2020-12-03 17:51

    What you need to do is declare your styleable in attrs.xml, not resources.xml. Then you'll be able to refer to it from your code like this:

    R.styleable.TheMissingTabWidget
    

提交回复
热议问题