public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = base.OnCreateView(inflater, container, savedInstanceState);

            if (_type.GetGenerationMethod() == GenerationMethod.Counter)
            {
                var counterText = view.FindViewById <TextView>(Resource.Id.textCounter);
                counterText.Text = _counter.ToString();

                view.FindViewById <LinearLayout>(Resource.Id.layoutCounter).Visibility = ViewStates.Visible;
            }

            var menu = view.FindViewById <RecyclerView>(Resource.Id.listMenu);

            SetupMenu(menu,
                      new List <SheetMenuItem>
            {
                new SheetMenuItem(Resource.Drawable.ic_action_edit, Resource.String.rename, RenameClicked),
                new SheetMenuItem(Resource.Drawable.ic_action_image, Resource.String.changeIcon,
                                  ChangeIconClicked),
                new SheetMenuItem(Resource.Drawable.ic_action_category, Resource.String.assignCategories,
                                  AssignCategoriesClicked),
                new SheetMenuItem(Resource.Drawable.ic_action_qr_code, Resource.String.showQrCode,
                                  ShowQrCodeClicked),
                new SheetMenuItem(Resource.Drawable.ic_action_delete, Resource.String.delete, DeleteClicked, null,
                                  true)
            });

            return(view);
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.sheetAuthenticatorMenu, container, false);

            if (_type.GetGenerationMethod() == GenerationMethod.Counter)
            {
                var counterText = view.FindViewById <TextView>(Resource.Id.textCounter);
                counterText.Text = _counter.ToString();

                view.FindViewById <LinearLayout>(Resource.Id.layoutCounter).Visibility = ViewStates.Visible;
            }

            var menu = view.FindViewById <RecyclerView>(Resource.Id.listMenu);

            SetupMenu(menu, new List <SheetMenuItem>
            {
                new(Resource.Drawable.ic_action_edit, Resource.String.rename, ClickRename),
                new(Resource.Drawable.ic_action_image, Resource.String.changeIcon, ClickChangeIcon),
                new(Resource.Drawable.ic_action_category, Resource.String.assignCategories, ClickAssignCategories),
                new(Resource.Drawable.ic_action_delete, Resource.String.delete, ClickDelete, null, true)
            });