问题描述
我在Android应用中实现的+1按钮。几乎一切正常:
I implemented the +1 button in my Android app. Almost everything works fine:
- 我可以登录/注销
- 当我登录,+ 1按钮讲述什么是+1的数量,并遵循变成红/白的事实,我也还是不上我的网页上的+1
但....当我点击+1按钮,活动指示器(进度指示器(进度))出现在我的+1按钮(成为白色),它永远不会停止转动!该窗口中取消/股/做一个永远不会出现+1 ...
BUT....when I click on the +1 button, an activity indicator (progress indicator (ProgressBar)) appears on my +1 button (which becomes white) and it never stops rotating ! The window to cancel/share/make a +1 never appears...
请注意,我有我的应用程序,并在这个其他活动的+1按钮+1按钮的另一个活动工作得很好...
Note that I have another activity with a +1 button in my app and that the +1 button in this other activity works perfectly well...
我不明白这是什么问题!
I don't understand what is the problem !
一个纽约的想法?
谢谢!
推荐答案
尝试this.it有漏洞,如果用户撤消+1
try this.it has bug when user undo the +1.
mPlusButton.setOnPlusOneClickListener(new PlusOneButton.OnPlusOneClickListener() {
@Override
public void onPlusOneClick(Intent intent) {
try {
mConnectionResult.startResolutionForResult(HomeActivity.this, REQUEST_CODE_RESOLVE_ERR);
} catch (SendIntentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
这篇关于谷歌的Android SDK加:进度指示器(进度)后点击永远不会停止的+1按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!