예제 #1
0
        protected override void InitViews()
        {
            base.InitViews();

            ListView?.SetAdapter(ComponentAdapterRecyclerFactory.CreateAdapter((inflater, parent) =>
                                                                               new EventsListTagCellViewHolder(inflater,
                                                                                                               parent,
                                                                                                               ModelView.CellModel1)));
            ListSubTagView?.SetAdapter(ComponentAdapterRecyclerFactory.CreateAdapter((inflater, parent) =>
                                                                                     new EventsListSubTagCellViewHolder(inflater,
                                                                                                                        parent,
                                                                                                                        ModelView.CellModel2)));
            ListEventNameView?.SetAdapter(ComponentAdapterRecyclerFactory.CreateAdapter((inflater, parent) =>
                                                                                        new EventNameCellViewHolder(inflater,
                                                                                                                    parent,
                                                                                                                    ModelView.CellModel3)));
        }
예제 #2
0
        public override void UpdateData()
        {
            base.UpdateData();

            CellModel1 = new EventsListTagCell(this);
            CellModel2 = new EventsListSubTagCell(this);
            CellModel3 = new EventNameListCell(this);

            BackroundContent?.SetBackgroundColor(ColorConstants.BackroundContent);

            ListView?.UpdateDataSource(EventManager.Instance.GetTagItem());
            ListView?.Orientation(OrientationListView.Horizontal);

            ListSubTagView?.UpdateDataSource(EventManager.Instance.GetMainItemPerDateTime);
            ListSubTagView?.Orientation(OrientationListView.Horizontal);

            ListEventNameView?.UpdateDataSource(EventManager.Instance.GetItemPerDateTime);
            ListEventNameView?.RowCountLimit(3);

            InitViews();
        }