当您单击该项目时,尽管您已将其链接到ID,但我无法移至其他两个
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (ntoggle.onOptionsItemSelected(item)){
return true;
}
if (id == R.id.page2){
Intent i = new Intent(DashboardActivity.this, CardStatus.class);
startActivity(i);
return true;
}
return super.onOptionsItemSelected(item);
}