语言

ActionBar.SetHomeActionContentDescription 方法

定义

重载

名称 说明
SetHomeActionContentDescription(ICharSequence)

启用后,为“开始/启动”操作设置备用说明。

SetHomeActionContentDescription(Int32)

启用后,为“开始/启动”操作设置备用说明。

SetHomeActionContentDescription(String)

启用后,为“开始/启动”操作设置备用说明。

SetHomeActionContentDescription(ICharSequence)

启用后,为“开始/启动”操作设置备用说明。

[Android.Runtime.Register("setHomeActionContentDescription", "(Ljava/lang/CharSequence;)V", "GetSetHomeActionContentDescription_Ljava_lang_CharSequence_Handler")]
public virtual void SetHomeActionContentDescription(Java.Lang.ICharSequence? description);
[<Android.Runtime.Register("setHomeActionContentDescription", "(Ljava/lang/CharSequence;)V", "GetSetHomeActionContentDescription_Ljava_lang_CharSequence_Handler")>]
abstract member SetHomeActionContentDescription : Java.Lang.ICharSequence -> unit
override this.SetHomeActionContentDescription : Java.Lang.ICharSequence -> unit

参数

description
ICharSequence

启用“开始”操作的新说明

特性

注解

启用后,为“开始/启动”操作设置备用说明。 启用“开始”操作时,此说明通常用于辅助功能/屏幕阅读器。 (请参阅 setDisplayHomeAsUpEnabled(boolean)。) 例如,“导航主页”或“向上导航”,具体取决于DISPLAY_HOME_AS_UP显示选项。 如果已使用 setHomeAsUpIndicator(int) 更改了 home-as-up 指示器,以指示更具体的功能(如滑动抽屉),则还应将其设置为准确描述操作。

将此项设置为 null 将使用系统默认说明。

Android 参考。android.app.ActionBar.setHomeActionContentDescription

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

另请参阅

适用于

SetHomeActionContentDescription(Int32)

启用后,为“开始/启动”操作设置备用说明。

[Android.Runtime.Register("setHomeActionContentDescription", "(I)V", "GetSetHomeActionContentDescription_IHandler")]
public virtual void SetHomeActionContentDescription(int resId);
[<Android.Runtime.Register("setHomeActionContentDescription", "(I)V", "GetSetHomeActionContentDescription_IHandler")>]
abstract member SetHomeActionContentDescription : int -> unit
override this.SetHomeActionContentDescription : int -> unit

参数

resId
Int32

启用后用作“开始”操作的新说明的字符串的资源 ID

特性

注解

启用后,为“开始/启动”操作设置备用说明。 启用“开始”操作时,此说明通常用于辅助功能/屏幕阅读器。 (请参阅 setDisplayHomeAsUpEnabled(boolean)。) 例如,“导航主页”或“向上导航”,具体取决于DISPLAY_HOME_AS_UP显示选项。 如果已使用 setHomeAsUpIndicator(int) 更改了 home-as-up 指示器,以指示更具体的功能(如滑动抽屉),则还应将其设置为准确描述操作。

将此项设置为 0 将使用系统默认说明。

Android 参考。android.app.ActionBar.setHomeActionContentDescription

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

另请参阅

适用于

SetHomeActionContentDescription(String)

启用后,为“开始/启动”操作设置备用说明。

public void SetHomeActionContentDescription(string? description);
member this.SetHomeActionContentDescription : string -> unit

参数

description
String

启用“开始”操作的新说明

注解

启用后,为“开始/启动”操作设置备用说明。 启用“开始”操作时,此说明通常用于辅助功能/屏幕阅读器。 (请参阅 setDisplayHomeAsUpEnabled(boolean)。) 例如,“导航主页”或“向上导航”,具体取决于DISPLAY_HOME_AS_UP显示选项。 如果已使用 setHomeAsUpIndicator(int) 更改了 home-as-up 指示器,以指示更具体的功能(如滑动抽屉),则还应将其设置为准确描述操作。

将此项设置为 null 将使用系统默认说明。

Android 参考。android.app.ActionBar.setHomeActionContentDescription

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于