fragment
第7章fragment片段与动作列选单
ed()方法 在覆寫 onOptionsItemSelected()方法是使用 android:id屬性值判斷執行功能,不過,我們需要自行處理是否選擇指定選項,如下所示: public boolean onOptionsItemSelected(MenuItem item) { Button btn = (Button) findViewById()。 switch(()){ case :