Unfortunately HelloListView has stopped

前端 未结 2 1841
野性不改
野性不改 2021-01-25 05:00

I\'ve followed this tutorial but when I try to run the application I get Unfortunately HelloListView has stopped The IDE gives no warnings or errors.

My Hel

2条回答
  •  无人共我
    2021-01-25 05:58

    You have to add setContentView(R.layout.yourlayout) after the super.onCreate(savedInstanceState);

    the R.layout.yourlayout should look like this ( in folder res/layout ) :

    
    
    

提交回复
热议问题