Example #1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            try
            {
                Context        contextThemeWrapper = AppSettings.SetTabDarkTheme ? new ContextThemeWrapper(Activity, Resource.Style.MyTheme_Dark_Base) : new ContextThemeWrapper(Activity, Resource.Style.MyTheme_Base);
                LayoutInflater localInflater       = inflater.CloneInContext(contextThemeWrapper);
                View           view = localInflater.Inflate(Resource.Layout.MoreMenuVideoDialogLayout, container, false);

                LibrarySynchronizer = new LibrarySynchronizer(Activity);
                Controller          = VideoController.GetInstance();

                InitComponent(view);
                AddOrRemoveEvent(true);

                return(view);
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
                return(null);
            }
        }