我覺得我的問題是很難理解的,但這裏是一個簡單的例子就明白我想要什麼如何更改Android應用主頁按鈕的執行
這種方法上面默認創建生成時的結果新品類延伸活動,在android系統
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);
Log.i("---------------", "----------onCreateOptionsMenu--------------");
return true;
}
我的目的時,可以顯示菜單中點擊菜單按鈕是創建一個方法,例如onCreateOptionsMenu,但在Android手機