PreferenceActivity.SwitchToHeader Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SwitchToHeader(PreferenceActivity+Header) |
When in two-pane mode, switch to the fragment pane to show the given preference fragment. |
SwitchToHeader(String, Bundle) |
When in two-pane mode, switch the fragment pane to show the given preference fragment. |
SwitchToHeader(PreferenceActivity+Header)
When in two-pane mode, switch to the fragment pane to show the given preference fragment.
[Android.Runtime.Register("switchToHeader", "(Landroid/preference/PreferenceActivity$Header;)V", "GetSwitchToHeader_Landroid_preference_PreferenceActivity_Header_Handler")]
public virtual void SwitchToHeader (Android.Preferences.PreferenceActivity.Header? header);
[<Android.Runtime.Register("switchToHeader", "(Landroid/preference/PreferenceActivity$Header;)V", "GetSwitchToHeader_Landroid_preference_PreferenceActivity_Header_Handler")>]
abstract member SwitchToHeader : Android.Preferences.PreferenceActivity.Header -> unit
override this.SwitchToHeader : Android.Preferences.PreferenceActivity.Header -> unit
Parameters
- header
- PreferenceActivity.Header
The new header to display.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SwitchToHeader(String, Bundle)
When in two-pane mode, switch the fragment pane to show the given preference fragment.
[Android.Runtime.Register("switchToHeader", "(Ljava/lang/String;Landroid/os/Bundle;)V", "GetSwitchToHeader_Ljava_lang_String_Landroid_os_Bundle_Handler")]
public virtual void SwitchToHeader (string? fragmentName, Android.OS.Bundle? args);
[<Android.Runtime.Register("switchToHeader", "(Ljava/lang/String;Landroid/os/Bundle;)V", "GetSwitchToHeader_Ljava_lang_String_Landroid_os_Bundle_Handler")>]
abstract member SwitchToHeader : string * Android.OS.Bundle -> unit
override this.SwitchToHeader : string * Android.OS.Bundle -> unit
Parameters
- fragmentName
- String
The name of the fragment to display.
- args
- Bundle
Optional arguments to supply to the fragment.
- Attributes
Remarks
When in two-pane mode, switch the fragment pane to show the given preference fragment.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.