虽然ParseLoginUI加载微调正在活动是在背景中可见 [英] While ParseLoginUI loading spinner is working activity is visible at background

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

问题描述

有关我的项目,我使用ParseLoginUI与调度如下所示:<一href="https://github.com/ParsePlatform/ParseUI-Android/tree/master/ParseLoginSampleWithDispatchActivity" rel="nofollow">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登录,解析微调开始旋转,也是我的活动,我应该去之后这一步也越来越明显(它看起来非常难看),然后引导我的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.

这应该是这样的:

It should look like this:

不过,我也看到了这一步:

Yet, I also see this step:

这是pretty的恶心。我怎样才能坚持只有第一个动画?我猜活动是pmaturely开始$ P $。

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

推荐答案

我找到了解决办法。其中不必要的启动即虚活动是属于Facebook的。这在我们的的Andr​​oidManifest.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天全站免登陆