ActionBar.SetHomeAsUpIndicator メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
SetHomeAsUpIndicator(Drawable) |
が有効になっている場合 |
SetHomeAsUpIndicator(Int32) |
が有効になっている場合 |
SetHomeAsUpIndicator(Drawable)
が有効になっている場合 #DISPLAY_HOME_AS_UP
にアイコン/ロゴ/タイトルの横に表示する別の描画可能なを設定します。
[Android.Runtime.Register("setHomeAsUpIndicator", "(Landroid/graphics/drawable/Drawable;)V", "GetSetHomeAsUpIndicator_Landroid_graphics_drawable_Drawable_Handler")]
public virtual void SetHomeAsUpIndicator (Android.Graphics.Drawables.Drawable? indicator);
[<Android.Runtime.Register("setHomeAsUpIndicator", "(Landroid/graphics/drawable/Drawable;)V", "GetSetHomeAsUpIndicator_Landroid_graphics_drawable_Drawable_Handler")>]
abstract member SetHomeAsUpIndicator : Android.Graphics.Drawables.Drawable -> unit
override this.SetHomeAsUpIndicator : Android.Graphics.Drawables.Drawable -> unit
パラメーター
- indicator
- Drawable
上のインジケーターに使用する描画可能な 。テーマの既定値を使用する場合は null
- 属性
注釈
が有効になっている場合 #DISPLAY_HOME_AS_UP
にアイコン/ロゴ/タイトルの横に表示する別の描画可能なを設定します。 これは、このモードを使用して、スライディング ドロワーなどのナビゲーションの代替選択を表示する場合に役立ちます。
このメソッドに渡 null
すと、テーマから描画可能な既定のが使用されます。
Up に関する代替または中間動作を実装する場合は、 を呼び出 #setHomeActionContentDescription(int) setHomeActionContentDescription()
して、アクセシビリティサポートのためのアクションの正しい説明を提供する必要もあります。
の Java ドキュメント android.app.ActionBar.setHomeAsUpIndicator(android.graphics.drawable.Drawable)
。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
こちらもご覧ください
- <xref:Android.App.ActionBar.SetDisplayOptions(Android.App.ActionBarDisplayOptions%2c+Android.App.ActionBarDisplayOptions)>
- SetDisplayHomeAsUpEnabled(Boolean)
- SetHomeActionContentDescription(Int32)
適用対象
SetHomeAsUpIndicator(Int32)
が有効になっている場合 #DISPLAY_HOME_AS_UP
にアイコン/ロゴ/タイトルの横に表示する別の描画可能なを設定します。
[Android.Runtime.Register("setHomeAsUpIndicator", "(I)V", "GetSetHomeAsUpIndicator_IHandler")]
public virtual void SetHomeAsUpIndicator (int resId);
[<Android.Runtime.Register("setHomeAsUpIndicator", "(I)V", "GetSetHomeAsUpIndicator_IHandler")>]
abstract member SetHomeAsUpIndicator : int -> unit
override this.SetHomeAsUpIndicator : int -> unit
パラメーター
- resId
- Int32
アップ インジケーターに使用する描画可能なリソース ID、またはテーマの既定値を使用する場合は null
- 属性
注釈
が有効になっている場合 #DISPLAY_HOME_AS_UP
にアイコン/ロゴ/タイトルの横に表示する別の描画可能なを設定します。 これは、このモードを使用して、スライディング ドロワーなどのナビゲーションの代替選択を表示する場合に役立ちます。
このメソッドに渡 0
すと、テーマから描画可能な既定のが使用されます。
Up に関する代替または中間動作を実装する場合は、 を呼び出 #setHomeActionContentDescription(int) setHomeActionContentDescription()
して、アクセシビリティサポートのためのアクションの正しい説明を提供する必要もあります。
の Java ドキュメント android.app.ActionBar.setHomeAsUpIndicator(int)
。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
こちらもご覧ください
- <xref:Android.App.ActionBar.SetDisplayOptions(Android.App.ActionBarDisplayOptions%2c+Android.App.ActionBarDisplayOptions)>
- SetDisplayHomeAsUpEnabled(Boolean)
- SetHomeActionContentDescription(Int32)