public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
作者: ploglin 時間: 2016-5-12 23:32
是我眼睛有問題嗎?沒看懂要問什麼問題?作者: proshenn 時間: 2016-5-17 00:33
Web API 的部分可以參考微軟的官方教學作者: pinkwow84522 時間: 2016-5-18 09:49