public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_collapsible, container, false); this.listView = (RadListView)rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); CollapsibleGroupsBehavior collapsibleGroupsBehavior = new CollapsibleGroupsBehavior (); this.listView.AddBehavior (collapsibleGroupsBehavior); ListViewDataSourceAdapter dataListViewAdapter = new ListViewDataSourceAdapter (GetData ()); dataListViewAdapter.AddGroupDescriptor (new MyGroupDescriptor ()); this.listView.SetAdapter (dataListViewAdapter); return rootView; }
public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.Inflate(Resource.Layout.fragment_list_view_collapsible, container, false); this.listView = (RadListView)rootView.FindViewById(Resource.Id.listView).JavaCast<RadListView>(); CollapsibleGroupsBehavior collapsibleGroupsBehavior = new CollapsibleGroupsBehavior (); this.listView.AddBehavior (collapsibleGroupsBehavior); ListViewDataSourceAdapter dataListViewAdapter = new ListViewDataSourceAdapter (GetData ()); dataListViewAdapter.AddGroupDescriptor (new MyGroupDescriptor ()); this.listView.SetAdapter (dataListViewAdapter); return rootView; }