Mohamed
Mohamed

Reputation: 1271

onPrepareOptionsMenu called after onCreateView

I have fragment which shows menu on action bar.

onPrepareOptionsMenu() is getting called after onCreateView()

Is that normal behavior? Is there any documentation that show this kind of stuff?

Upvotes: 0

Views: 158

Answers (1)

Umar Hussain
Umar Hussain

Reputation: 3527

Yes its normal since onCreateView() first inflate the layout and then you can prepare the menu items and add listener to it.

Upvotes: 2

Related Questions