虽然 ParseLoginUI 加载微调器正在工作,但后台可见 [英] While ParseLoginUI loading spinner is working activity is visible at background

查看:15
本文介绍了虽然 ParseLoginUI 加载微调器正在工作,但后台可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

For my project, I am using ParseLoginUI with a dispatcher as shown here: https://github.com/ParsePlatform/ParseUI-Android/tree/master/ParseLoginSampleWithDispatchActivity

但是,当我单击使用 Facebook 登录"时,Parse spinner 开始旋转,而且我应该在此步骤之后"进行的活动也变得可见(它看起来非常丑陋),然后它会将我定向到 facebook 登录小部件和活动.

However, when I click "Login with Facebook", Parse spinner starts spinning, also my activity which I should go "after" this step is also getting visible (it looks really ugly) and then it directs me to facebook login widget and to the activity.

它应该是这样的:

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

Yet, I also see this step:

这太恶心了.我怎么能只坚持第一个动画?我猜 Activity 过早开始了.

Which is pretty disgusting. How can I stick with only first animation? I guess Activity is starting prematurely.

推荐答案

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

I found the solution. That dummy activity which starts unnecessarily is belong to Facebook. Which in our AndroidManifest.xml Facebook's LoginActivity looks like this:

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

将 NoDisplay 添加为主题,使其不显示在屏幕上:

Add NoDisplay as Theme to it, so it doesn't show up on screen:

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

这篇关于虽然 ParseLoginUI 加载微调器正在工作,但后台可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆