Ejemplo n.º 1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var ret = inflater.Inflate(Resource.Layout.fragment_report_sessions, container, false);

            list          = ret.FindViewById <SwipeRecyclerView>(Resource.Id.list);
            delete        = ret.FindViewById(Resource.Id.delete);
            delete.Click += (sender, e) => {
                RequestDeleteSessions(adapter.GetCheckedSessions());
            };

            export        = ret.FindViewById(Resource.Id.export);
            export.Click += (sender, e) => {
                StartExportActivity();
            };

            adapter                = new ReportSessionAdapter(list);
            adapter.emptyView      = ret.FindViewById(Resource.Id.empty);
            adapter.sessionActions = this;
            list.SetAdapter(adapter);

            return(ret);
        }