android include tag - invalid layout reference

后端 未结 8 590
遥遥无期
遥遥无期 2020-12-05 06:21

I\'m having a problem including a different layout through the include tag in the android layout xml file. When specifing the layout reference ( @layout/... ), i\'m getting

8条回答
  •  遥遥无期
    2020-12-05 07:14

    For me the problem was that the name of the layout was wrong: I used "-" instead of "_". AndroidStudio didn't tell me somthing was wrong till I tried to deploy the app

提交回复
热议问题