• LinearLayout 、RelativeLayout
1)繼承LinearLayout、RelativeLayout方法
2)重寫protected void onFinishInflate() 方法,進行變量的聲明,和監聽的聲明
Toolbar 添加返回鍵 Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); g