我使用ActionBarDrawerToggle
類將DrawerLayout
和框架ActionBar
的功能綁定在一起,以實現對導航抽屜的推薦設計。在ActionBarDrawerToggle中使用syncState()
說什麼Android開發者網站
Call syncState() from your Activity's onPostCreate to synchronize the indicator with the state of the linked DrawerLayout after onRestoreInstanceState has occurred.
但我沒有得到什麼syncState()
方法實際上呢?
請儘可能簡單地解釋它。