gpt4 book ai didi

android - 当 ParseLoginUI 加载微调器正在工作时, Activity 在后台可见

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:28:29 26 4
gpt4 key购买 nike

对于我的项目,我将 ParseLoginUI 与调度程序一起使用,如下所示:https://github.com/ParsePlatform/ParseUI-Android/tree/master/ParseLoginSampleWithDispatchActivity

但是,当我单击“使用 Facebook 登录”时,Parse 微调器开始旋转,我应该在这一步“之后”进行的 Activity 也变得可见(它看起来真的很难看),然后它将我定向到 facebook 登录小部件和 Activity 。

它应该是这样的: enter image description here

然而,我也看到了这一步:

enter image description here

这太恶心了。我怎样才能坚持只使用第一个动画?我想 Activity 过早开始了。

最佳答案

我找到了解决方案。那个不必要地启动的虚拟 Activity 是属于 Facebook 的。在我们的 AndroidManifest.xml 中,Facebook 的 LoginActivity 看起来像这样:

<activity android:name="com.facebook.LoginActivity">

添加 NoDisplay 作为主题,这样它就不会出现在屏幕上:

<activity android:name="com.facebook.LoginActivity"
android:theme="@android:style/Theme.NoDisplay">

关于android - 当 ParseLoginUI 加载微调器正在工作时, Activity 在后台可见,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28922934/

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