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

后端 未结 4 1813
北恋
北恋 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

    I like to add your 3rd question answer in answer of Dnyanesh

    super.onCreateOptionMenu() and super.onOptionItemSelected

    If you write this then It will first call your parent class this method If you extend any class in this class.It will work as parent class if Methods are in parent class too.

提交回复
热议问题