2 using System.Collections.Generic;
13 namespace MonoDroid.Dialog
19 this.Section = section;
22 public Context Context {
get; set; }
26 public override int Count {
27 get {
return this.Section.Elements.Count; }
30 public override Element this [
int position] {
32 return Section.Elements [position];
36 public override int ViewTypeCount {
37 get {
return this.Section.ElementViewTypeCount; }
42 return this.Section.GetElementViewType (
this [position]);
50 public override View
GetView (
int position, View convertView, ViewGroup parent)
52 var element = Section.Elements [position];
53 var view = element.GetView (this.Context, convertView, parent);
SectionAdapter(Section section)
override View GetView(int position, View convertView, ViewGroup parent)
Sections contain individual Element instances that are rendered by MonoDroid.Dialog ...
override long GetItemId(int position)
override int GetItemViewType(int position)