如何将 getSupportFragmentManager() 传递给 AccountAuthenticatorActivity 中的外部库?
我需要使用 android-styled-dialogs 添加自定义对话框:https://github.com/inmite/android-styled-dialogs
最佳答案
取AccountAuthenticatorActivity并将其放入您的项目中。
代替
AccountAuthenticatorActivity 扩展 Activity
放置AccountAuthenticatorActivity 扩展 FragmentActivity
。使用新的
AccountAuthenticatorActivity
扩展您的类并使用getSupportFragmentManager()
。
关于android - AccountAuthenticatorActivity 上的 getSupportFragmentManager,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19126290/