Problem running android HelloTabWidget example - NullPointerException on addTab()

后端 未结 12 1178
陌清茗
陌清茗 2021-01-13 17:17

I\'ve tried the Tab Layout example, and I\'ve also fixed the few typos in the example (and added all the activities to the manifest). However, when I run it on the emulator

12条回答
  •  旧时难觅i
    2021-01-13 17:48

    You should post some more of the code so that we can make better assumptions. Especially make sure you instantiate the tabHost Somewhere.

提交回复
热议问题