コード例 #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 = "My Ebooks";

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

            _adapter = new MyEbooksList_Adapter(this.Activity, Vm.MyEbooksList);
            Vm.LoadMyEbooksCommand.Execute(null);
            myebook_list.Adapter             = _adapter;
            myebook_list.OnItemClickListener = this;

            return(view);
        }
コード例 #2
0
 public Filter_MyEbookItemModel(MyEbooksList_Adapter adapter)
 {
     _adapter = adapter;
 }