Git 可以列出所有的檔案,再加上一些指令,就能計算專案程式碼的總行數,這樣一來就可以知道專案開發的每段時間程式碼數量的變化。
註:以下指令只能在 Mac/Linux 下執行。
註:以下指令只能在 Mac/Linux 下執行。
public boolean onOptionsItemSelected(MenuItem item) {
//home
if (drawerToggle.onOptionsItemSelected(item)) {
return true;
}
return super.onOptionsItemSelected(item);
}
這樣當你觸碰 App icon 時就可以開關 drawer 了。