在Android开发中,使用ToolBar控件替代ActionBar控件,需要在java代码中使用setSupportActionBar()方法,如下: 1 Toolbar toolbar = (Toolbar) this.
確定! 回上一頁