What does this method do super.onCreateOptionMenu() and super.onOptionsItemSelected(item)

后端 未结 4 1808
北恋
北恋 2021-01-24 09:40

I am new to android. I know this question have been asked before but, i am still confuse . What this method does when returning them inside my onCreateOptionMenu() and onOptionI

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-24 10:08

    onCreateOptionMenu() method used to create an option menu.

    onOptionsItemSelected() method used to handling the event of option menu i.e. which menu action is triggered and what should be the outcome of that action etc.

提交回复
热议问题