Styling Custom Views

后端 未结 3 997
无人共我
无人共我 2021-02-04 15:47

I have a few custom views in my Android project and I\'ve added the relevant details to the attrs.xml file. And now I can implement my objects through XML. This works fine.

3条回答
  •  一整个雨季
    2021-02-04 16:37

    After more intensive searching on Google I gave up finding it answered elsewhere, and by chance tried using the absolute namespace of my generated R file it worked. May this solve all your problems.

    USE THE NAMESPACE CONTAINING YOUR R FILE

    
    

提交回复
热议问题