Activity.OnCreateView Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
| Nome | Descrizione |
|---|---|
| OnCreateView(String, Context, IAttributeSet) |
Implementazione standard di |
| OnCreateView(View, String, Context, IAttributeSet) |
Implementazione standard di
|
OnCreateView(String, Context, IAttributeSet)
Implementazione standard di android.view.LayoutInflater.Factory#onCreateView usata quando si gonfia con LayoutInflater restituito da #getSystemService.
[Android.Runtime.Register("onCreateView", "(Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;", "GetOnCreateView_Ljava_lang_String_Landroid_content_Context_Landroid_util_AttributeSet_Handler")]
public virtual Android.Views.View? OnCreateView(string name, Android.Content.Context context, Android.Util.IAttributeSet attrs);
[<Android.Runtime.Register("onCreateView", "(Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;", "GetOnCreateView_Ljava_lang_String_Landroid_content_Context_Landroid_util_AttributeSet_Handler")>]
abstract member OnCreateView : string * Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.View
override this.OnCreateView : string * Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.View
Parametri
- name
- String
Nome del tag da gonfiare.
- context
- Context
Contesto in cui viene creata la vista.
- attrs
- IAttributeSet
Attributi di inflazione specificati nel file XML.
Valori restituiti
Implementazioni
- Attributi
Commenti
Implementazione standard di android.view.LayoutInflater.Factory#onCreateView usata quando si gonfia con LayoutInflater restituito da #getSystemService. Questa implementazione non esegue alcuna operazione ed è destinata alle app preliminariandroid.os.Build.VERSION_CODES#HONEYCOMB . Le app più recenti devono usare #onCreateView(View, String, Context, AttributeSet).
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.
Vedi anche
- <xref:Android.Views.LayoutInflater.CreateView(System.String%2c+System.String%2c+System.String)>
- LayoutInflater
Si applica a
OnCreateView(View, String, Context, IAttributeSet)
Implementazione standard di
android.view.LayoutInflater.Factory2#onCreateView(View, String, Context, AttributeSet) utilizzato quando si gonfia con LayoutInflater restituito da #getSystemService.
[Android.Runtime.Register("onCreateView", "(Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;", "GetOnCreateView_Landroid_view_View_Ljava_lang_String_Landroid_content_Context_Landroid_util_AttributeSet_Handler")]
public virtual Android.Views.View? OnCreateView(Android.Views.View? parent, string name, Android.Content.Context context, Android.Util.IAttributeSet attrs);
[<Android.Runtime.Register("onCreateView", "(Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;", "GetOnCreateView_Landroid_view_View_Ljava_lang_String_Landroid_content_Context_Landroid_util_AttributeSet_Handler")>]
abstract member OnCreateView : Android.Views.View * string * Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.View
override this.OnCreateView : Android.Views.View * string * Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.View
Parametri
- parent
- View
Elemento padre in cui verrà inserita la visualizzazione creata; si noti che può essere null.
- name
- String
Nome del tag da gonfiare.
- context
- Context
Contesto in cui viene creata la vista.
- attrs
- IAttributeSet
Attributi di inflazione specificati nel file XML.
Valori restituiti
Implementazioni
- Attributi
Commenti
Implementazione standard di android.view.LayoutInflater.Factory2#onCreateView(View, String, Context, AttributeSet) usata quando si gonfia con LayoutInflater restituito da #getSystemService. Questa implementazione gestisce <i tag di frammento> per incorporare frammenti all'interno dell'attività.
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.
Vedi anche
- <xref:Android.Views.LayoutInflater.CreateView(System.String%2c+System.String%2c+System.String)>
- LayoutInflater