語言

InputMethodSubtype.GetLayoutDisplayName(Context, ApplicationInfo) 方法

定義

回傳版面顯示名稱。

public string GetLayoutDisplayName(Android.Content.Context context, Android.Content.PM.ApplicationInfo imeAppInfo);
member this.GetLayoutDisplayName : Android.Content.Context * Android.Content.PM.ApplicationInfo -> string

參數

context
Context

用來取得 android.content.pm.PackageManager PackageManager的上下文。

imeAppInfo
ApplicationInfo

輸入 ApplicationInfo 法的

傳回

版面顯示名稱。

備註

回傳版面顯示名稱。

若 layoutLabelResource 非零(由 InputMethodSubtypeBuilder#setLayoutLabelResource setLayoutLabelResource指定),則該資源產生的文字將被回傳。 標籤的在地字串資源應該大寫,以便納入 UI 清單。

若 layoutLabelResource 為零,框架會回傳非本地化的版面標籤(若透過 InputMethodSubtypeBuilder#setLayoutLabelNonLocalized setLayoutLabelNonLocalized指定)。

Java 文件 android.view.inputmethod.InputMethodSubtype.getLayoutDisplayName(android.content.Context, android.content.pm.ApplicationInfo)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於