I'm trying to make a customized options menu. After using this code I get: Element item is not allowed here
Code:
Inspired by: Android dev guide