android include tag - invalid layout reference

后端 未结 8 573
遥遥无期
遥遥无期 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

    0 讨论(0)
  • 2020-12-05 07:16

    I think i should mention how i solved the same problem. Tried cleaning the project and didn't work. I have quite large names for the layout (chrono_first_small_field), and that wasn't the cause either.

    Closed Eclipse, and just opened it again, and that worked.

    That makes more sense than having to implement the onMeasure method :-)

    0 讨论(0)
提交回复
热议问题