有关我的项目,我使用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登录,解析微调开始旋转,也是我的活动,我应该去之后这一步也越来越明显(它看起来非常难看),然后引导我的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的。这在我们的的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">