“…must supply a layout_height…” but its in my style resources?

后端 未结 2 1629
渐次进展
渐次进展 2021-01-07 18:42

I had a working app on 2.1 and above until I tried to cleanup my initial layout with a theme of styles. Now the app won\'t even start with the \"You must supply a layout_he

相关标签:
2条回答
  • 2021-01-07 18:55

    You have <item name="android:layout_height">30dp</item> but no android:layout_width in your style.

    You need both.

    0 讨论(0)
  • 2021-01-07 19:09

    Check out my answer here. It most likely has to do with a missing attribute in your styles.xml file.

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