protected override void OnCreate(Bundle bundle) { base.OnCreate (bundle); // Set our view from the "main" layout resource SetContentView (Resource.Layout.Main); PinnedHeaderListView list = FindViewById (Resource.Id.exampleListView) as PinnedHeaderListView; var adapter = new HeroesListViewAdapter (this, Contacts); list.SetPinnedHeaderView (LayoutInflater.Inflate(Resource.Layout.HeroListItemHeader,list,false)); list.DividerHeight = 0; list.FastScrollEnabled = true; list.SetAdapter (adapter); list.SetOnScrollListener (adapter); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); PinnedHeaderListView list = FindViewById(Resource.Id.exampleListView) as PinnedHeaderListView; var adapter = new HeroesListViewAdapter(this, Contacts); list.SetPinnedHeaderView(LayoutInflater.Inflate(Resource.Layout.HeroListItemHeader, list, false)); list.DividerHeight = 0; list.FastScrollEnabled = true; list.SetAdapter(adapter); list.SetOnScrollListener(adapter); }