Exemple #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.expertslistviewlayout, container, false);
            var titlelabel = view.FindViewById <TextView>(Resource.Id.expertlistlabel);

            titlelabel.Text = "Experts";

            var experts_list = view.FindViewById <ListView>(Resource.Id.expert_listview);

            _adapter = new ExpertsList_Adapter(this.Activity, Vm.ExpertsList);
            Vm.LoadExpertsCommand.Execute(null);
            experts_list.Adapter             = _adapter;
            experts_list.OnItemClickListener = this;

            //this.HasOptionsMenu = true;
            return(view);
        }
Exemple #2
0
 public Filter_ExpertItemModel(ExpertsList_Adapter adapter)
 {
     _adapter = adapter;
 }