Esempio n. 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.mymessageslistviewlayout, container, false);
            var titlelabel = view.FindViewById <TextView>(Resource.Id.mymessageslistlabel);

            titlelabel.Text = "My Messages";

            var mysub_list = view.FindViewById <ListView>(Resource.Id.mymessages_listview);

            _adapter = new MyMessagesList_Adapter(this.Activity, Vm.MyMessagesList);
            Vm.LoadMyMessagesCommand.Execute(null);
            mysub_list.Adapter             = _adapter;
            mysub_list.OnItemClickListener = this;

            return(view);
        }
 public Filter_MyMessageItemModel(MyMessagesList_Adapter adapter)
 {
     _adapter = adapter;
 }