コード例 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);

                Methods.App.FullScreenApp(this);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                // Create your application here
                SetContentView(Resource.Layout.CreatePlaylistLayout);

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();

                MAdView = FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, null);

                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #2
0
ファイル: SearchFragment.cs プロジェクト: divitiae/playtube
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            try
            {
                // Use this to return your custom view for this Fragment
                View view = inflater.Inflate(Resource.Layout.Search_Layout, container, false);

                //Get Value And Set Toolbar
                InitComponent(view);
                InitToolbar(view);
                SetRecyclerViewAdapters();

                SwipeRefreshLayout.Refresh += SwipeRefreshLayoutOnRefresh;
                MAdapter.ItemClick         += MAdapterOnItemClick;
                MCatAdapter.ItemClick      += MCatAdapterOnItemClick;
                FilterButton.Click         += FilterButtonOnClick;

                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(Activity);

                return(view);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(null);
            }
        }
コード例 #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                Methods.App.FullScreenApp(this);

                // Create your application here
                SetContentView(Resource.Layout.ViewFullPostLayout);

                PostId = Intent.GetStringExtra("Id") ?? string.Empty;

                //Get Value And Set Toolbar
                InitToolbar();
                SetRecyclerViewAdapters();

                StartApiService();
                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                Methods.App.FullScreenApp(this);

                // Create your application here
                SetContentView(Resource.Layout.MultiImagesPostViewerLayout);

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();
                Get_DataImage();

                ClickListener = new PostClickListener(this, NativeFeedType.Global);

                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #5
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            try
            {
                // Use this to return your custom view for this Fragment
                View view = inflater.Inflate(Resource.Layout.RecyclerDefaultLayout, container, false);

                //Get Value And Set Toolbar
                InitComponent(view);
                InitToolbar(view);
                SetRecyclerViewAdapters();

                MAdapter.ItemClick += MAdapterOnItemClick;

                //Get Data
                LoadDataAsync();

                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(Activity);

                return(view);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(null);
            }
        }
コード例 #6
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                Methods.App.FullScreenApp(this);

                // Create your application here
                SetContentView(Resource.Layout.RecyclerDefaultLayout);

                Type     = Intent.GetStringExtra("Type") ?? "";
                PassedId = Intent.GetStringExtra("PassedId") ?? "";

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();
                SetRecyclerViewAdapters();

                SetData();
                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #7
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);
                Methods.App.FullScreenApp(this);

                // Create your application here
                SetContentView(Resource.Layout.InfoMessagesLayout);

                UserId = Intent?.GetStringExtra("UserId") ?? "";

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();
                SetRecyclerViewAdapters();

                LoadData();
                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #8
0
        private void DestroyBasic()
        {
            try
            {
                RewardedVideoAd?.OnDestroy(this);
                PublisherAdView?.Destroy();

                TxtSave         = null !;
                IconFacebook    = null !;
                IconTwitter     = null !;
                IconInstagram   = null !;
                IconVk          = null !;
                IconLinkedin    = null !;
                IconYouTube     = null !;
                TxtFacebook     = null !;
                TxtTwitter      = null !;
                TxtInstagram    = null !;
                TxtVk           = null !;
                TxtLinkedin     = null !;
                TxtYouTube      = null !;
                PagesId         = null !;
                PageData        = null !;
                RewardedVideoAd = null !;
                PublisherAdView = null !;
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #9
0
        private void DestroyBasic()
        {
            try
            {
                MAdView?.Destroy();
                RewardedVideoAd?.OnDestroy(this);

                MAdapter           = null;
                SwipeRefreshLayout = null;
                MRecycler          = null;
                EmptyStateLayout   = null;
                Inflated           = null;
                RewardedVideoAd    = null;
                MAdView            = null;
                AdapterModelsClass = null;
                FollowersModel     = null;
                GroupsModel        = null;
                PagesModel         = null;
                ImagesModel        = null;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #10
0
ファイル: PokesActivity.cs プロジェクト: gdsghost/BasedOnRate
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                Methods.App.FullScreenApp(this);

                // Create your application here
                SetContentView(Resource.Layout.RecyclerDefaultLayout);

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();
                SetRecyclerViewAdapters();

                StartApiService();
                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #11
0
        public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            try
            {
                var id = Arguments.GetString("UserId") ?? "Data not available";
                if (id != "Data not available" && !string.IsNullOrEmpty(id))
                {
                    UserId = id;
                }

                var type = Arguments.GetString("UserType") ?? "Data not available";
                if (type != "Data not available" && !string.IsNullOrEmpty(type))
                {
                    UserType = type;
                }

                InitComponent(view);
                InitToolbar(view);
                SetRecyclerViewAdapters();

                StartApiService();

                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(Activity);

                base.OnViewCreated(view, savedInstanceState);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #12
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                Methods.App.FullScreenApp(this);

                // Create your application here
                SetContentView(Resource.Layout.PostReactionsLayout);

                TypeClass    = Intent?.GetStringExtra("TypeClass") ?? "comment";
                TypeReaction = "Like";

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();

                StartApiService();
                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #13
0
        private void DestroyBasic()
        {
            try
            {
                RewardedVideoAd?.OnDestroy(this);

                ViewPager         = null !;
                TxtDescription    = null !;
                ImgLike           = null !;
                ImgWoWonder       = null !;
                TxtCountLike      = null !;
                TxtCountWoWonder  = null !;
                MainLayout        = null !;
                InfoImageLiner    = null !;
                BtnCountLike      = null !;
                BtnCountWoWonder  = null !;
                BtnLike           = null !;
                BtnComment        = null !;
                BtnShare          = null !;
                MainSectionButton = null !;
                BtnWonder         = null !;
                ImgWonder         = null !;
                TxtWonder         = null !;
                LikeButton        = null !;
                ShareText         = null !;
                ClickListener     = null !;
                RewardedVideoAd   = null !;
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #14
0
ファイル: UserProfileFragment.cs プロジェクト: surnek/tm-15v
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            try
            {
                View view = inflater.Inflate(Resource.Layout.UserProfileLayout, container, false);

                UserId = Arguments.GetString("UserId") ?? "";

                InitComponent(view);
                SetUpViewPager();

                if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
                {
                    Activity.Window.ClearFlags(WindowManagerFlags.TranslucentStatus);
                    Activity.Window.AddFlags(WindowManagerFlags.DrawsSystemBarBackgrounds);
                }

                GetMyInfoData();

                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(Activity);
                return(view);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(null);
            }
        }
コード例 #15
0
        private void DestroyBasic()
        {
            try
            {
                RewardedVideoAd?.OnDestroy(this);

                Adapter         = null !;
                ViewPager       = null !;
                TabLayout       = null !;
                AngryTab        = null !;
                HahaTab         = null !;
                LikeTab         = null !;
                LoveTab         = null !;
                SadTab          = null !;
                WowTab          = null !;
                Id              = null !;
                TypeReaction    = null !;
                CommentObject   = null !;
                RewardedVideoAd = null !;
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #16
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            try
            {
                View view = inflater.Inflate(Resource.Layout.UserChannel_Layout, container, false);


                if (!string.IsNullOrEmpty(Arguments.GetString("Object")))
                {
                    UserData = JsonConvert.DeserializeObject <UserDataObject>(Arguments.GetString("Object"));
                    if (UserData != null)
                    {
                        IdChannel = UserData.Id;
                    }
                }

                //Get Value And Set Toolbar
                InitComponent(view);
                InitToolbar(view);
                SetTap();

                SubscribeChannelButton.Click += SubscribeChannelButtonClick;
                IconMesseges.Click           += IconMessegesOnClick;

                GetDataUser();

                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(Activity);
                return(view);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(null);
            }
        }
コード例 #17
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                Methods.App.FullScreenApp(this);

                // Create your application here
                SetContentView(Resource.Layout.PageSocialLinksLayout);

                var id = Intent.GetStringExtra("PageId") ?? "Data not available";
                if (id != "Data not available" && !string.IsNullOrEmpty(id))
                {
                    PagesId = id;
                }

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();

                Get_Data_Page();
                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #18
0
        private void DestroyBasic()
        {
            try
            {
                RewardedVideoAd?.OnDestroy(this);

                TxtSave         = null;
                IconFacebook    = null;
                IconTwitter     = null;
                IconInstagram   = null;
                IconVk          = null;
                IconLinkedin    = null;
                IconYouTube     = null;
                TxtFacebook     = null;
                TxtTwitter      = null;
                TxtInstagram    = null;
                TxtVk           = null;
                TxtLinkedin     = null;
                TxtYouTube      = null;
                PagesId         = null;
                PageData        = null;
                RewardedVideoAd = null;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #19
0
        private void DestroyBasic()
        {
            try
            {
                RewardedVideoAd?.OnDestroy(this);

                Adapter         = null;
                ViewPager       = null;
                TabLayout       = null;
                AngryTab        = null;
                HahaTab         = null;
                LikeTab         = null;
                LoveTab         = null;
                SadTab          = null;
                WowTab          = null;
                PostId          = null;
                TypeReaction    = null;
                PostData        = null;
                RewardedVideoAd = null;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #20
0
        private void DestroyBasic()
        {
            try
            {
                RewardedVideoAd?.OnDestroy(this);

                ViewPager         = null;
                TxtDescription    = null;
                ImgLike           = null;
                ImgWoWonder       = null;
                TxtCountLike      = null;
                TxtCountWoWonder  = null;
                MainLayout        = null;
                InfoImageLiner    = null;
                BtnCountLike      = null;
                BtnCountWoWonder  = null;
                BtnLike           = null;
                BtnComment        = null;
                BtnShare          = null;
                MainSectionButton = null;
                BtnWonder         = null;
                ImgWonder         = null;
                TxtWonder         = null;
                LikeButton        = null;
                ShareText         = null;
                ClickListener     = null;
                RewardedVideoAd   = null;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #21
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);

                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                // Create your application here
                SetContentView(Resource.Layout.RecyclerDefaultLayout);

                GroupId = Intent?.GetStringExtra("GroupId");

                if (!string.IsNullOrEmpty(Intent?.GetStringExtra("itemObject")))
                {
                    GroupDataClass = JsonConvert.DeserializeObject <GroupClass>(Intent?.GetStringExtra("itemObject"));
                }

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();
                SetRecyclerViewAdapters();
                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #22
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                Window.SetSoftInputMode(SoftInput.AdjustResize);

                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);
                Methods.App.FullScreenApp(this);

                SetContentView(Resource.Layout.Video_Viewer_Layout);

                Instance = this;

                MoviesId = Intent.GetStringExtra("VideoId") ?? "";

                VideoActionsController = new VideoController(this, "Viewer_Video");
                SetVideoPlayerFragmentAdapters();


                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #23
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                Methods.App.FullScreenApp(this);

                // Create your application here
                SetContentView(Resource.Layout.ImagePostViewer_Layout);

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();

                Get_DataImage();

                ClickListener = new PostClickListener(this);

                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #24
0
        private void DestroyBasic()
        {
            try
            {
                MAdView?.Destroy();
                RewardedVideoAd?.OnDestroy(this);

                MAdapter           = null !;
                SwipeRefreshLayout = null !;
                MRecycler          = null !;
                EmptyStateLayout   = null !;
                Inflated           = null !;
                RewardedVideoAd    = null !;
                MAdView            = null !;
                AdapterModelsClass = null !;
                FollowersModel     = null !;
                GroupsModel        = null !;
                PagesModel         = null !;
                ImagesModel        = null !;
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #25
0
 private void DestroyBasic()
 {
     try
     {
         RewardedVideoAd?.OnDestroy(this);
         TabLayoutView    = null;
         ViewPagerView    = null;
         TabAdapter       = null;
         TabVideosComment = null;
         TabVideosAbout   = null;
         RewardedVideoAd  = null;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
コード例 #26
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                Window.SetSoftInputMode(SoftInput.AdjustResize);
                base.OnCreate(savedInstanceState);

                Window.SetBackgroundDrawableResource(AppSettings.SetTabDarkTheme ? Resource.Drawable.chatBackground3_Dark : Resource.Drawable.chatBackground);

                Methods.App.FullScreenApp(this);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                // Set our view from the "MessagesBox_Layout" layout resource
                SetContentView(Resource.Layout.MessagesBoxLayout);

                Instance = this;

                var data = Intent.GetStringExtra("UserId") ?? "Data not available";
                if (data != "Data not available" && !string.IsNullOrEmpty(data))
                {
                    Userid = int.Parse(data);                                                              // to_id
                }
                string json = Intent.GetStringExtra("UserItem");
                var    item = JsonConvert.DeserializeObject <UserDataObject>(json);
                if (item != null)
                {
                    UserInfoData = item;
                }

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();
                SetRecyclerViewAdapters();

                //Set Title ToolBar and data chat user After that get messages
                LoadData_ItemUser();

                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this);

                GlobalContext = HomeActivity.GetInstance();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #27
0
 private void DestroyBasic()
 {
     try
     {
         RewardedVideoAd?.OnDestroy(this);
         TabLayoutView    = null !;
         ViewPagerView    = null !;
         TabAdapter       = null !;
         TabVideosComment = null !;
         TabVideosAbout   = null !;
         RewardedVideoAd  = null !;
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
コード例 #28
0
        private void DestroyBasic()
        {
            try
            {
                RewardedVideoAd?.OnDestroy(this);

                MAdapter        = null !;
                MRecycler       = null !;
                ImageUser       = null !;
                TxtName         = null !;
                BtnDownload     = null !;
                RewardedVideoAd = null !;
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #29
0
        private void DestroyBasic()
        {
            try
            {
                RewardedVideoAd?.OnDestroy(this);

                MAdapter        = null;
                MRecycler       = null;
                ImageUser       = null;
                TxtName         = null;
                BtnDownload     = null;
                RewardedVideoAd = null;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #30
0
ファイル: SharedFragment.cs プロジェクト: surnek/tm-15v
        public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            try
            {
                InitComponent(view);
                InitToolbar(view);
                SetRecyclerViewAdapters();

                LoadSharedSounds();

                RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(Activity);

                base.OnViewCreated(view, savedInstanceState);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }