My question had a similar issue. However, the Note 3 has a "physical" button for this at the bottom. This could override your apps.
I think your onCreateOptionsMenu
- MenuInflater
is the issue, change to the following and see if that works for you:
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.activity, menu);
return true;
}
For elevation issues:
For Android 5.0, if you want to set it directly into a style use:
<item name="android:elevation">0dp</item>
and for Support library compatibility use:
0dp
For pre 5.0 Android, add this too to your app theme:
<!-- Remove shadow below action bar Android < 5.0 -->
<item name="android:windowContentOverlay">@null</item>