Ejemplo n.º 1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            base.OnCreateView(inflater, container, savedInstanceState);
            var view = this.BindingInflate(Resource.Layout.EventDetailsInternalChat, null);

            _chatListView = view.FindViewById <MvxRecyclerView>(Resource.Id.reyclerview_internal_message_list);
            if (_chatListView != null)
            {
                var linearLayoutManager = new LinearLayoutManager(Activity);
                linearLayoutManager.StackFromEnd = true;
                _chatListView.SetLayoutManager(linearLayoutManager);
                _chatListView.HasFixedSize = true;
                _chatListView.AddOnScrollFetchItemsListener(linearLayoutManager, () => ViewModel.LoadPreviousMessageTask, () => ViewModel.LoadPreviousMessage, ScrollDirection.UP);
            }


            return(view);
        }