Exemple #1
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            if (this.settingsOverviews.Count <= position)
            {
                return;
            }

            SingleTextViewHolder viewHolder  = holder as SingleTextViewHolder;
            SettingsOverviewItem currentItem = this.settingsOverviews[position];

            viewHolder.SetFirstTextView(currentItem.DisplayNameResourceId);
            viewHolder.Click += (object sender, EventArgs args) => this.onClickCallback?.Invoke(currentItem);
        }
        private void MoveToDeeperSettings(SettingsOverviewItem settingsOverview)
        {
            switch (settingsOverview.Type)
            {
            case SettingsOverviewType.BarcodeCaputre:
                this.MoveToFragment(BarcodeCaptureSettingsFragment.Create(), true, null);
                break;

            case SettingsOverviewType.Camera:
                this.MoveToFragment(CameraSettingsFragment.Create(), true, null);
                break;

            case SettingsOverviewType.View:
                this.MoveToFragment(ViewSettingsFragment.Create(), true, null);
                break;

            case SettingsOverviewType.ResultHandling:
                this.MoveToFragment(ResultHandlingSettingsFragment.Create(), true, null);
                break;
            }
        }