AccountAuthenticatorActivity上的getSupportFragmentManager
问题描述:
如何将getSupportFragmentManager()传递给AccountAuthenticatorActivity中的外部库?AccountAuthenticatorActivity上的getSupportFragmentManager
我需要把一个自定义对话框与Android风格的对话框:https://github.com/inmite/android-styled-dialogs
答
采取AccountAuthenticatorActivity,并把它放在你的项目。
而不是
AccountAuthenticatorActivity extends Activity
把AccountAuthenticatorActivity extends FragmentActivity
。用新的
AccountAuthenticatorActivity
扩展您的班级并使用getSupportFragmentManager()
。