Button click in Android Fragment does not work

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

activity_main.xml



        
3条回答
  •  青春惊慌失措
    2021-01-22 15:55

    Since others have addressed setting onClick listener, let me add that if you have done so, and still getting the error check permissions required. For my case, the item on fragment was meant to open chat which requires microphone so it was not working until I added appropriate permissions in Manifest file.

提交回复
热议问题