As Mark has stated, its not designed to be a menu.
However, here is a quick and dirty approach to ignore the first call:
declare this class field:
//mNaviFirstHit should be initialized to true
private boolean mNaviFirstHit = true;
And in the onNavigationItemSelected:
@Override
public boolean onNavigationItemSelected(int itemPosition, long itemId) {
if (mNaviFirstHit) {
mNaviFirstHit = false;
return true;
}
// DO WHAT YOU WOULD NORMALLY DO
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…