Activity.OnCreateView Metodo

Definizione

Overload

Nome Descrizione
OnCreateView(String, Context, IAttributeSet)

Implementazione standard di android.view.LayoutInflater.Factory#onCreateView usata quando si gonfia con LayoutInflater restituito da #getSystemService.

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.

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).

per android.app.Activity.onCreateView(java.lang.String, android.content.Context, android.util.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à.

per android.app.Activity.onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.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