中的newChooseAccountIntent()
方法AccountPicker
允许您通过参数自定义AccountPicker
“对话框”(实际上是一个Activity
)中的文本descriptionOverrideText
:
public static Intent newChooseAccountIntent (Account selectedAccount, ArrayList<Account> allowableAccounts, String[] allowableAccountTypes, boolean alwaysPromptForAccount, String descriptionOverrideText, String addAccountAuthTokenType, String[] addAccountRequiredFeatures, Bundle addAccountOptions)
但是“对话框”还带有一个默认设置为“选择帐户”的标题,例如根据本文中包含的屏幕截图。
如何自定义此标题,甚至完全删除它?重点不是我想更改措辞,而是我希望能够将措辞翻译成其他语言......对于我的应用程序的用户来说,目前不是很好的用户界面,其他所有内容都使用当地语言,但不是这个“对话”的标题。