gpt4 book ai didi

android - AccountAuthenticatorActivity 和 Fragments

转载 作者:IT老高 更新时间:2023-10-28 22:17:39 25 4
gpt4 key购买 nike

当我使用支持包时,是否可以通过 AccountAuthenticatorActivity 使用 fragment ? AccountAuthenitactorActivity 不是 FragmentActivity 类的子类,因此我不确定在使用 Support 包时如何使用 Fragment。

最佳答案

不,但 AccountAuthenticatorActivity 只是一个辅助类,它对 AccountAuthenticatorResponse 进行一些基本的检查 - 您不需要将其子类化。

只需借用(例如,来自 here - 代码在此快照和 ICS 之间没有任何更改)相关功能并扩展您想要的任何基类,一切顺利。

关于android - AccountAuthenticatorActivity 和 Fragments,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8932009/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com