예제 #1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            // Use this to return your custom view for this Fragment
            // return inflater.Inflate(Resource.Layout.YourFragment, container, false);

            base.OnCreateView(inflater, container, savedInstanceState);
            var view       = inflater.Inflate(Resource.Layout.ebooklistviewlayout, container, false);
            var titlelabel = view.FindViewById <TextView>(Resource.Id.ebooklistlabel);

            titlelabel.Text = "Ebooks";

            var ebook_list = view.FindViewById <ListView>(Resource.Id.ebooks_listview);

            _adapter = new EbooksList_Adapter(this.Activity, Vm.EbooksList);
            Vm.LoadEbooksCommand.Execute(null);
            ebook_list.Adapter             = _adapter;
            ebook_list.OnItemClickListener = this;

            //this.HasOptionsMenu = true;
            return(view);
        }
 public Filter_EbookItemModel(EbooksList_Adapter adapter)
 {
     _adapter = adapter;
 }