【发布时间】:2014-04-26 00:26:26
【问题描述】:
在导航抽屉设计模式的android development tutorial 中,推荐的管理不同布局的方法是使用片段。这些片段通过FragmentTransaction().replace() 事务进行交换。在我看来,导航抽屉片段通常会反复交换和重新加载。因此在这种情况下使用FragmentTransaction.show() 和FragmentTransaction.hide() 调用不是更有意义吗?
现在使用NavigationDrawer 的最佳做法是什么?
【问题讨论】:
标签: android android-fragments navigation-drawer