SimpleExpandableListAdapter Constructors
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
SimpleExpandableListAdapter(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected SimpleExpandableListAdapter (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.SimpleExpandableListAdapter : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.SimpleExpandableListAdapter
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
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
SimpleExpandableListAdapter(Context, IList<IDictionary<String, Object>>, Int32, String[], Int32[], IList<IList<IDictionary<String, Object>>>, Int32, String[], Int32[])
Constructor
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/List;I[Ljava/lang/String;[ILjava/util/List;I[Ljava/lang/String;[I)V", "")]
public SimpleExpandableListAdapter (Android.Content.Context? context, System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string,object>>? groupData, int groupLayout, string[]? groupFrom, int[]? groupTo, System.Collections.Generic.IList<System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string,object>>>? childData, int childLayout, string[]? childFrom, int[]? childTo);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/List;I[Ljava/lang/String;[ILjava/util/List;I[Ljava/lang/String;[I)V", "")>]
new Android.Widget.SimpleExpandableListAdapter : Android.Content.Context * System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string, obj>> * int * string[] * int[] * System.Collections.Generic.IList<System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string, obj>>> * int * string[] * int[] -> Android.Widget.SimpleExpandableListAdapter
Parameters
- context
- Context
The context where the ExpandableListView
associated with this SimpleExpandableListAdapter
is
running
- groupData
- IList<IDictionary<String,Object>>
A List of Maps. Each entry in the List corresponds to one group in the list. The Maps contain the data for each group, and should include all the entries specified in "groupFrom"
- groupLayout
- Int32
resource identifier of a view layout that defines the views for a group. The layout file should include at least those named views defined in "groupTo"
- groupFrom
- String[]
A list of keys that will be fetched from the Map associated with each group.
- groupTo
- Int32[]
The group views that should display column in the "groupFrom" parameter. These should all be TextViews. The first N views in this list are given the values of the first N columns in the groupFrom parameter.
- childData
- IList<IList<IDictionary<String,Object>>>
A List of List of Maps. Each entry in the outer List corresponds to a group (index by group position), each entry in the inner List corresponds to a child within the group (index by child position), and the Map corresponds to the data for a child (index by values in the childFrom array). The Map contains the data for each child, and should include all the entries specified in "childFrom"
- childLayout
- Int32
resource identifier of a view layout that defines the views for a child. The layout file should include at least those named views defined in "childTo"
- childFrom
- String[]
A list of keys that will be fetched from the Map associated with each child.
- childTo
- Int32[]
The child views that should display column in the "childFrom" parameter. These should all be TextViews. The first N views in this list are given the values of the first N columns in the childFrom parameter.
- Attributes
Remarks
Constructor
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
SimpleExpandableListAdapter(Context, IList<IDictionary<String, Object>>, Int32, Int32, String[], Int32[], IList<IList<IDictionary<String, Object>>>, Int32, String[], Int32[])
Constructor
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/List;II[Ljava/lang/String;[ILjava/util/List;I[Ljava/lang/String;[I)V", "")]
public SimpleExpandableListAdapter (Android.Content.Context? context, System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string,object>>? groupData, int expandedGroupLayout, int collapsedGroupLayout, string[]? groupFrom, int[]? groupTo, System.Collections.Generic.IList<System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string,object>>>? childData, int childLayout, string[]? childFrom, int[]? childTo);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/List;II[Ljava/lang/String;[ILjava/util/List;I[Ljava/lang/String;[I)V", "")>]
new Android.Widget.SimpleExpandableListAdapter : Android.Content.Context * System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string, obj>> * int * int * string[] * int[] * System.Collections.Generic.IList<System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string, obj>>> * int * string[] * int[] -> Android.Widget.SimpleExpandableListAdapter
Parameters
- context
- Context
The context where the ExpandableListView
associated with this SimpleExpandableListAdapter
is
running
- groupData
- IList<IDictionary<String,Object>>
A List of Maps. Each entry in the List corresponds to one group in the list. The Maps contain the data for each group, and should include all the entries specified in "groupFrom"
- expandedGroupLayout
- Int32
resource identifier of a view layout that defines the views for an expanded group. The layout file should include at least those named views defined in "groupTo"
- collapsedGroupLayout
- Int32
resource identifier of a view layout that defines the views for a collapsed group. The layout file should include at least those named views defined in "groupTo"
- groupFrom
- String[]
A list of keys that will be fetched from the Map associated with each group.
- groupTo
- Int32[]
The group views that should display column in the "groupFrom" parameter. These should all be TextViews. The first N views in this list are given the values of the first N columns in the groupFrom parameter.
- childData
- IList<IList<IDictionary<String,Object>>>
A List of List of Maps. Each entry in the outer List corresponds to a group (index by group position), each entry in the inner List corresponds to a child within the group (index by child position), and the Map corresponds to the data for a child (index by values in the childFrom array). The Map contains the data for each child, and should include all the entries specified in "childFrom"
- childLayout
- Int32
resource identifier of a view layout that defines the views for a child. The layout file should include at least those named views defined in "childTo"
- childFrom
- String[]
A list of keys that will be fetched from the Map associated with each child.
- childTo
- Int32[]
The child views that should display column in the "childFrom" parameter. These should all be TextViews. The first N views in this list are given the values of the first N columns in the childFrom parameter.
- Attributes
Remarks
Constructor
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
SimpleExpandableListAdapter(Context, IList<IDictionary<String, Object>>, Int32, Int32, String[], Int32[], IList<IList<IDictionary<String, Object>>>, Int32, Int32, String[], Int32[])
Constructor
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/List;II[Ljava/lang/String;[ILjava/util/List;II[Ljava/lang/String;[I)V", "")]
public SimpleExpandableListAdapter (Android.Content.Context? context, System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string,object>>? groupData, int expandedGroupLayout, int collapsedGroupLayout, string[]? groupFrom, int[]? groupTo, System.Collections.Generic.IList<System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string,object>>>? childData, int childLayout, int lastChildLayout, string[]? childFrom, int[]? childTo);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/List;II[Ljava/lang/String;[ILjava/util/List;II[Ljava/lang/String;[I)V", "")>]
new Android.Widget.SimpleExpandableListAdapter : Android.Content.Context * System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string, obj>> * int * int * string[] * int[] * System.Collections.Generic.IList<System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string, obj>>> * int * int * string[] * int[] -> Android.Widget.SimpleExpandableListAdapter
Parameters
- context
- Context
The context where the ExpandableListView
associated with this SimpleExpandableListAdapter
is
running
- groupData
- IList<IDictionary<String,Object>>
A List of Maps. Each entry in the List corresponds to one group in the list. The Maps contain the data for each group, and should include all the entries specified in "groupFrom"
- expandedGroupLayout
- Int32
resource identifier of a view layout that defines the views for an expanded group. The layout file should include at least those named views defined in "groupTo"
- collapsedGroupLayout
- Int32
resource identifier of a view layout that defines the views for a collapsed group. The layout file should include at least those named views defined in "groupTo"
- groupFrom
- String[]
A list of keys that will be fetched from the Map associated with each group.
- groupTo
- Int32[]
The group views that should display column in the "groupFrom" parameter. These should all be TextViews. The first N views in this list are given the values of the first N columns in the groupFrom parameter.
- childData
- IList<IList<IDictionary<String,Object>>>
A List of List of Maps. Each entry in the outer List corresponds to a group (index by group position), each entry in the inner List corresponds to a child within the group (index by child position), and the Map corresponds to the data for a child (index by values in the childFrom array). The Map contains the data for each child, and should include all the entries specified in "childFrom"
- childLayout
- Int32
resource identifier of a view layout that defines the views for a child (unless it is the last child within a group, in which case the lastChildLayout is used). The layout file should include at least those named views defined in "childTo"
- lastChildLayout
- Int32
resource identifier of a view layout that defines the views for the last child within each group. The layout file should include at least those named views defined in "childTo"
- childFrom
- String[]
A list of keys that will be fetched from the Map associated with each child.
- childTo
- Int32[]
The child views that should display column in the "childFrom" parameter. These should all be TextViews. The first N views in this list are given the values of the first N columns in the childFrom parameter.
- Attributes
Remarks
Constructor
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.