InputMethodSubtype.GetDisplayNameFormatted 方法

定义

返回此子类型的显示名称。

[Android.Runtime.Register("getDisplayName", "(Landroid/content/Context;Ljava/lang/String;Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;", "")]
public Java.Lang.ICharSequence GetDisplayNameFormatted (Android.Content.Context? context, string? packageName, Android.Content.PM.ApplicationInfo? appInfo);
[<Android.Runtime.Register("getDisplayName", "(Landroid/content/Context;Ljava/lang/String;Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;", "")>]
member this.GetDisplayNameFormatted : Android.Content.Context * string * Android.Content.PM.ApplicationInfo -> Java.Lang.ICharSequence

参数

context
Context

Context 将用于获取 Localeandroid.content.pm.PackageManager

packageName
String

输入方法的包名称。

appInfo
ApplicationInfo

ApplicationInfo输入法。

返回

此子类型的显示名称。

属性

注解

返回此子类型的显示名称。

如果 subtypeNameResId 指定了从该资源生成的文本(!= 0)。 标签的本地化字符串资源应大写,以包含在 UI 列表中。 字符串资源最多可以包含一个 %s。 如果存在, %s 将替换为用户区域设置中子类型区域设置的显示名称。

如果未 subtypeNameResId 指定 (== 0),框架将在用户的区域设置中返回子类型区域设置的显示名称(大写以用于 UI 列表)。

适用于 . 的 android.view.inputmethod.InputMethodSubtype.getDisplayName(android.content.Context, java.lang.String, android.content.pm.ApplicationInfo)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于