Android-FacebookSDK更改AccountKit活动标题

Android-FacebookSDK更改AccountKit活动标题,android,account-kit,Android,Account Kit,我正在使用facebookAccountKitSdk的AccountKit活动。 我可以更改AccountKit活动的标题吗?目前,标题是“输入您的手机号码” 我已经检查并找到了这个方法,但不知道怎么做 public AccountKitConfiguration.AccountKitConfigurationBuilder setUIManager(UIManager uiManager) 谢谢 这是瞎猜,因为我现在还没有安卓工作室。但是因为AccountKitActivity扩展了AppC

我正在使用facebookAccountKitSdk的AccountKit活动。
我可以更改AccountKit活动的标题吗?目前,标题是“输入您的手机号码”

我已经检查并找到了这个方法,但不知道怎么做

public AccountKitConfiguration.AccountKitConfigurationBuilder setUIManager(UIManager uiManager)

谢谢

这是瞎猜,因为我现在还没有安卓工作室。但是因为
AccountKitActivity
扩展了
AppCompatActivity
,我猜您会用同样的方式设置标题吗

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.my_fancy_layout);
    setTitle(R.string.my_fancy_layout_title); 
}
或者如果你正在使用工具栏

Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
toolbar.setTitle(R.string.your_title)

因为AccountKitActivity被声明为最终类,所以我们可以从AccountKitActivity继承来编辑标题。很抱歉,我试图理解您的评论。您不能从最终类继承,但仍然可以访问其基类的
public
protected
成员。它的基类是
AppCompatActivity
,因此您应该可以访问
setTitle
findViewById
方法