Button click in Android Fragment does not work

后端 未结 3 1858
终归单人心
终归单人心 2021-01-22 15:09

activity_main.xml



        
3条回答
  •  太阳男子
    2021-01-22 15:48

    The way XML onClick is implemented is directed to Activities, not Fragments. The activity should own the btnClick1 method, not a fragment.

提交回复
热议问题