Android SDK error: Trying instantiate a class that is not a fragment

后端 未结 3 1947
日久生厌
日久生厌 2021-02-07 10:14

I am hardly trying to create a simple application with a top menu and a changeable view below (by pressing the buttons in the menu fragment we change the view of the fragment be

3条回答
  •  执笔经年
    2021-02-07 10:37

    As you are using fragments in your layout and I suggest you to extend your class from fragment or fragment activity.

提交回复
热议问题