2

我遵循了 Google 推荐的 Navigation Drawer 实现,现在有一个介绍性的 Fragment 和 Map 片段,我可以在它们之间进行转换。抽屉工作顺利,直到我将 ActionBarSherlock 添加到我的项目中。Now, when the home (original fragment) is selected the menu is delayed closing and I get an annoying flash before the home fragment appears.

片段事务由以下人员处理:

FragmentTransaction transaction = fragmentManager.beginTransaction();
transaction
      .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)
      .replace(R.id.content_frame, fragment, null)
      .commit();

欢迎任何建议。

4

0 回答 0