Android xml merge layout error on inflate

前端 未结 2 1359
Happy的楠姐
Happy的楠姐 2020-12-30 23:59

I have a CustomView class and I want to use xml layout for it. So, my class extends RelativeLayout, inflates xml layout and tries to attach it to s

2条回答
  •  孤城傲影
    2020-12-31 00:43

    Make sure to specify the complete path from source root in the main layout like this
    
    ``
    
    and not like this 
    ``
    

提交回复
热议问题