I was using to customize my menu items the actionLayout attribute but, the following error occurred:
Layoutmenu_item.xml:
<?xmlversion="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:focusable="true"
android:paddingTop="4dip"
android:paddingBottom="4dip"
android:paddingLeft="8dip"
android:paddingRight="8dip"
android:textAppearance="@android:attr/textAppearanceMedium"
style="@android:attr/actionButtonStyle"
android:textSize="6pt"
android:textColor="@android:color/white"/>