当我启动登录/使用的openSession方法的应用程序标题栏(我们使用一个自定义)消失,另外一个显示注册Facebook的活动。 有没有一种方法来设置新的活动自定义栏呢?
顺便我打电话Facebook的授权:
fb.openSession(this, new Session.StatusCallback() {
@Override
public void call(Session session, SessionState state, Exception exception) {
Logger.d(LOGTAG, "Session moved to state " + state.name());
if (null == exception) {
mFacebookSession = session;
switch (state) {
case CLOSED:
case CLOSED_LOGIN_FAILED:
mLoginProgressDialog.dismiss();
Toast.makeText(FacebookLoginActivity.this, "Login failed. Verify login and password",
Toast.LENGTH_LONG).show();
break;
case OPENED:
case OPENED_TOKEN_UPDATED:
mFacebookSession.removeCallback(this);
FacebookServer.getInstance(getApplicationContext()).setSession(mFacebookSession);
FacebookServer.getInstance(getApplicationContext()).getUserFacebookId(
new FacebookLoginActivityUserIDCallback());
break;
case OPENING:
break;
default:
mLoginProgressDialog.dismiss();
break;
}
} else {
exception.printStackTrace();
}
}
});
我们建立了在调用上述方法活动的onCreate()方法的自定义标题栏:
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.facebook_login_activity);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.app_title_bar);
以下图片显示的问题是什么: