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); } }
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); AdsGoogle.Ad_RewardedVideo(this); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
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); } }
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); } }
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); } }
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); } }
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(Context); base.OnViewCreated(view, savedInstanceState); } catch (Exception e) { Console.WriteLine(e); } }
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.EventMain_Layout); Instance = this; //Get Value And Set Toolbar InitComponent(); InitToolbar(); RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this); } catch (Exception e) { Console.WriteLine(e); } }
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 SharedVideos(); RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(Activity); return(view); } catch (Exception e) { Console.WriteLine(e); return(null); } }
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); } }
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.EditMyProfileLayout); //Get Value And Set Toolbar InitComponent(); MAdView = FindViewById <AdView>(Resource.Id.adView); AdsGoogle.InitAdView(MAdView, null); GetMyInfoData(); RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this); } catch (Exception e) { Console.WriteLine(e); } }
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); PageId = Intent?.GetStringExtra("PageId") ?? ""; //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); StartApiService(); RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(this); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
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"); InitComponent(); SetRecyclerViewAdapters(); GetDataVideo(); AdsGoogle.Ad_RewardedVideo(this); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { try { View view = inflater.Inflate(Resource.Layout.RecyclerDefaultLayout, container, false); 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(); AdsGoogle.Ad_RewardedVideo(Context); return(view); } catch (Exception e) { Console.WriteLine(e); return(null); } }
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); } }
protected override void OnCreate(Bundle savedInstanceState) { try { // Create your application here base.OnCreate(savedInstanceState); IMethods.IApp.FullScreenApp(this); SetContentView(Resource.Layout.AddNewCall_layout); var ToolBar = FindViewById <Toolbar>(Resource.Id.Searchtoolbar); if (ToolBar != null) { ToolBar.Title = GetText(Resource.String.Lbl_Select_contact); SetSupportActionBar(ToolBar); SupportActionBar.SetDisplayShowCustomEnabled(true); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetHomeButtonEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); } CalluserRecylerView = FindViewById <RecyclerView>(Resource.Id.CallRecylerview); Calluser_Empty = FindViewById <LinearLayout>(Resource.Id.Callusercontacts_LinerEmpty); Icon_Calluser = FindViewById <AppCompatTextView>(Resource.Id.Callusercontacts_icon); IMethods.Set_TextViewIcon("1", Icon_Calluser, IonIcons_Fonts.IosPeopleOutline); Icon_Calluser.SetTextColor(Color.ParseColor(AppSettings.MainColor)); swipeRefreshLayout = FindViewById <SwipeRefreshLayout>(Resource.Id.swipeRefreshLayout); swipeRefreshLayout.SetColorSchemeResources(Android.Resource.Color.HoloBlueLight, Android.Resource.Color.HoloGreenLight, Android.Resource.Color.HoloOrangeLight, Android.Resource.Color.HoloRedLight); ButtonSearchRandom = FindViewById <Button>(Resource.Id.SearchRandom_Button); CalluserRecylerView.Visibility = ViewStates.Visible; Calluser_Empty.Visibility = ViewStates.Gone; CallAdapter = new AddNewCall_Adapter(this); ContactsLayoutManager = new LinearLayoutManager(this); CalluserRecylerView.SetLayoutManager(ContactsLayoutManager); CallAdapter.mCallUserContacts = new ObservableCollection <Classes.UserContacts.User>(); CalluserRecylerView.SetAdapter(CallAdapter); LoadContacts(); AdsGoogle.Ad_RewardedVideo(this); } catch (Exception e) { Console.WriteLine(e); } }
private void NavigationTabBarOnStartTabSelected(object sender, NavigationTabBar.StartTabSelectedEventArgs e) { try { switch (e.P1) { case 0: PageNumber = 0; ShowFragment0(); AdsGoogle.Ad_Interstitial(Context); break; case 1: PageNumber = 1; ShowFragment1(); AdsGoogle.Ad_RewardedVideo(Context); break; case 2: PageNumber = 2; //NavigationTabBar.Model tabNotifications = Models.FirstOrDefault(a => a.Title == Context.GetText(Resource.String.Lbl_Browse)); //tabNotifications?.HideBadge(); ShowFragment2(); AdsGoogle.Ad_Interstitial(Context); break; case 3: PageNumber = 3; ShowFragment3(); AdsGoogle.Ad_RewardedVideo(Context); break; case 4: PageNumber = 4; ShowFragment4(); AdsGoogle.Ad_Interstitial(Context); break; default: PageNumber = 0; ShowFragment0(); break; } } catch (Exception exception) { Console.WriteLine(exception); } }
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); } }
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); } }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { try { Type = Arguments.GetString("type"); string json = Arguments.GetString("userinfo"); UserId = Arguments.GetString("userid"); Avatar = Arguments.GetString("avatar"); FullName = Arguments.GetString("fullname"); View view = inflater.Inflate(Resource.Layout.Pix_UserProfileLayout, container, false); //Get Value And Set Toolbar InitComponent(view); InitToolbar(view); SetRecyclerViewAdapters(); FeedTextView.Click += FeedTextViewOnClick; PixUserFeedAdapter.ItemClick += PixUserFeedAdapter_ItemClick; SocialGoogle.Click += BtnGoogleOnClick; SocialFacebook.Click += BtnFacebookOnClick; SocialTwitter.Click += BtnTwitterOnClick; WebsiteButton.Click += WebsiteButtonOnClick; FollowButton.Click += FollowButtonOnClick; MessageButton.Click += MessageButtonOnClick; LinFollowers.Click += LinFollowersOnClick; LinFollowing.Click += LinFollowingOnClick; Morebutton.Click += IconMoreOnClick; //Get Data Api LoadProfile(json, Type); LoadExploreFeed(); AdsGoogle.Ad_RewardedVideo(Context); return(view); } catch (Exception e) { Console.WriteLine(e); return(null); } }
protected override void OnCreate(Bundle savedInstanceState) { try { base.OnCreate(savedInstanceState); IMethods.IApp.FullScreenApp(this); SetContentView(Resource.Layout.SearchFilter_Layout); var ToolBar = FindViewById <Toolbar>(Resource.Id.toolbar); if (ToolBar != null) { Title = GetText(Resource.String.Lbl_Search_Filter); SetSupportActionBar(ToolBar); SupportActionBar.SetDisplayShowCustomEnabled(true); SupportActionBar.SetDisplayShowTitleEnabled(false); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetHomeButtonEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); } Txt_Save = FindViewById <TextView>(Resource.Id.toolbar_title); Txt_Gender = FindViewById <EditText>(Resource.Id.GenderPicker); Txt_ProfilePicture = FindViewById <EditText>(Resource.Id.ProfilePicturePicker); Txt_Status = FindViewById <EditText>(Resource.Id.StatusPicker); Txt_Gender.SetOnClickListener(this); Txt_ProfilePicture.SetOnClickListener(this); Txt_Status.SetOnClickListener(this); GetFilter(); AdsGoogle.Ad_RewardedVideo(this); } catch (Exception e) { Console.WriteLine(e); } }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { try { View view = inflater.Inflate(Resource.Layout.RecyclerDefaultLayout, container, false); InitComponent(view); InitToolbar(view); SetRecyclerViewAdapters(); LoadLatestDownloads(); AdsGoogle.Ad_RewardedVideo(Context); return(view); } catch (Exception e) { Console.WriteLine(e); return(null); } }
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 Data NamePlayList = Arguments.GetString("Name_PlayList") ?? ""; var data = Arguments.GetString("ItemPlayList"); if (!string.IsNullOrEmpty(data)) { PlayListVideoObject = JsonConvert.DeserializeObject <PlayListVideoObject>(data); } //Get Value And Set Toolbar InitComponent(view); InitToolbar(view); SetRecyclerViewAdapters(); SwipeRefreshLayout.Refresh += SwipeRefreshLayoutOnRefresh; MAdapter.ItemClick += MAdapterOnItemClick; //Get Data Api StartApiService(); RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(Activity); return(view); } catch (Exception e) { Console.WriteLine(e); return(null); } }
protected override void OnCreate(Bundle savedInstanceState) { try { base.OnCreate(savedInstanceState); IMethods.IApp.FullScreenApp(this); // Set our view from the "UserContacts_Layout" layout resource SetContentView(Resource.Layout.UserContacts_Layout); //Get values ContactsRecyler = FindViewById <RecyclerView>(Resource.Id.usercontactsRecyler); usercontacts_Empty = (LinearLayout)FindViewById(Resource.Id.usercontacts_LinerEmpty); Btn_SearchRandom = (Button)FindViewById(Resource.Id.SearchRandom_Button); Icon_UserContacts = FindViewById <AppCompatTextView>(Resource.Id.usercontacts_icon); swipeRefreshLayout = FindViewById <SwipeRefreshLayout>(Resource.Id.swipeRefreshLayout); //Set ToolBar var ToolBar = FindViewById <Toolbar>(Resource.Id.Searchtoolbar); ToolBar.Title = this.GetText(Resource.String.Lbl_MyContacts); SetSupportActionBar(ToolBar); SupportActionBar.SetDisplayShowCustomEnabled(true); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetHomeButtonEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); IMethods.Set_TextViewIcon("1", Icon_UserContacts, IonIcons_Fonts.IosPeopleOutline); Icon_UserContacts.SetTextColor(Android.Graphics.Color.ParseColor(AppSettings.MainColor)); swipeRefreshLayout.SetColorSchemeResources(Android.Resource.Color.HoloBlueLight, Android.Resource.Color.HoloGreenLight, Android.Resource.Color.HoloOrangeLight, Android.Resource.Color.HoloRedLight); ContactsLayoutManager = new LinearLayoutManager(this); ContactsRecyler.SetLayoutManager(ContactsLayoutManager); ContactsRecyler.HasFixedSize = true; ContactsRecyler.SetItemViewCacheSize(10); ContactsRecyler.GetLayoutManager().ItemPrefetchEnabled = true; ContactsRecyler.DrawingCacheEnabled = true; ContactsRecyler.DrawingCacheQuality = DrawingCacheQuality.High; usercontacts_Empty.Visibility = ViewStates.Gone; ContactsRecyler.Visibility = ViewStates.Visible; ContactAdapter = new UserContact_Adapter(this, new JavaList <Classes.UserContacts.User>(UserContactsList), ContactsRecyler); //Event Btn_SearchRandom.Click += BtnSearchRandomOnClick; swipeRefreshLayout.Refresh += SwipeRefreshLayoutOnRefresh; ContactAdapter.ItemClick += ContactAdapter_OnItemClick; ContactsRecyler.SetAdapter(ContactAdapter); Get_MyContact(); AdsGoogle.Ad_RewardedVideo(this); } catch (Exception e) { Console.WriteLine(e); } }
protected override void OnCreate(Bundle savedInstanceState) { try { base.OnCreate(savedInstanceState); IMethods.IApp.FullScreenApp(this); var view = MyContextWrapper.GetContentView(this, Settings.Lang, Resource.Layout.BlockedUsers_Layout); if (view != null) { SetContentView(view); } else { SetContentView(Resource.Layout.BlockedUsers_Layout); } //Get values BlockedUsersRecyler = FindViewById <RecyclerView>(Resource.Id.BlockRecylerview); BlockedUsers_Empty = FindViewById <LinearLayout>(Resource.Id.Block_LinerEmpty); swipeRefreshLayout = FindViewById <SwipeRefreshLayout>(Resource.Id.swipeRefreshLayout); Icon_blockedusers = FindViewById <TextView>(Resource.Id.blockedusers_icon); BlockedUsersRecyler.Visibility = ViewStates.Visible; BlockedUsers_Empty.Visibility = ViewStates.Gone; swipeRefreshLayout.SetColorSchemeResources(Android.Resource.Color.HoloBlueLight, Android.Resource.Color.HoloGreenLight, Android.Resource.Color.HoloOrangeLight, Android.Resource.Color.HoloRedLight); IMethods.Set_TextViewIcon("2", Icon_blockedusers, "\uf235"); Icon_blockedusers.SetTextColor(Color.ParseColor(Settings.MainColor)); var ToolBar = FindViewById <Toolbar>(Resource.Id.Searchtoolbar); if (ToolBar != null) { ToolBar.Title = GetString(Resource.String.Lbl_BlockedUsers); SetSupportActionBar(ToolBar); SupportActionBar.SetDisplayShowCustomEnabled(true); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetHomeButtonEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); } //Set Adapter mLayoutManager = new LinearLayoutManager(this); BlockedUsersRecyler.SetLayoutManager(mLayoutManager); mAdapter = new BlockedUsers_Adapter(this); BlockedUsersRecyler.SetAdapter(mAdapter); Get_BlockedList(); //Show Ads AdsGoogle.Ad_RewardedVideo(this); } catch (Exception e) { Crashes.TrackError(e); } }
public void OnClickItem(MeowBottomNavigation.Model item) { try { if (!item.GetCount().Equals("0") || !item.GetCount().Equals("empty")) { NavigationTabBar.SetCount(item.GetId(), "empty"); } PageNumber = item.GetId(); if (PageNumber >= 0) { if (PageNumber == 0) // News_Feed_Tab { if (AppSettings.ShowAddPostOnNewsFeed && Context.FloatingActionButton.Visibility == ViewStates.Invisible) { Context.FloatingActionButton.Visibility = ViewStates.Visible; } AdsGoogle.Ad_Interstitial(MainContext); } else if (PageNumber == 1) // Notifications_Tab { if (Context.FloatingActionButton.Visibility == ViewStates.Visible) { Context.FloatingActionButton.Visibility = ViewStates.Gone; } Context.RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(MainContext); } else if (PageNumber == 2) // Trending_Tab { if (Context.FloatingActionButton.Visibility == ViewStates.Visible) { Context.FloatingActionButton.Visibility = ViewStates.Gone; } AdsGoogle.Ad_Interstitial(MainContext); if (AppSettings.ShowLastActivities) { Task.Run(() => { Context.TrendingTab.StartApiService(); }); } } else if (PageNumber == 3) // More_Tab { if (Context.FloatingActionButton.Visibility == ViewStates.Visible) { Context.FloatingActionButton.Visibility = ViewStates.Gone; } Context.RewardedVideoAd = AdsGoogle.Ad_RewardedVideo(MainContext); PollyController.RunRetryPolicyFunction(new List <Func <Task> > { () => ApiRequest.Get_MyProfileData_Api(MainContext) }); } } if (Context.ViewPager.CurrentItem != PageNumber) { Context.ViewPager.SetCurrentItem(PageNumber, true); } } catch (Exception e) { Console.WriteLine(e); } }
private void NavigationTabBarOnStartTabSelected(object sender, NavigationTabBar.StartTabSelectedEventArgs e) { try { switch (e.P1) { case 0: PageNumber = 0; ShowFragment0(); Context?.TracksCounter?.CheckTracksCounter(); break; case 1: if (AppSettings.ShowTrending) { PageNumber = 1; ShowFragment1(); Context?.TracksCounter?.CheckTracksCounter(); AdsGoogle.Ad_Interstitial(Context); } else { PageNumber = 2; NavigationTabBar.Model tabNotifications = Models.FirstOrDefault(a => a.Title == Context.GetText(Resource.String.Lbl_Notifications)); tabNotifications?.HideBadge(); ShowFragment2(); Context?.TracksCounter?.CheckTracksCounter(); AdsGoogle.Ad_RewardedVideo(Context); } break; case 2: PageNumber = 2; if (AppSettings.ShowTrending) { NavigationTabBar.Model tabNotifications = Models.FirstOrDefault(a => a.Title == Context.GetText(Resource.String.Lbl_Notifications)); tabNotifications?.HideBadge(); ShowFragment2(); Context?.TracksCounter?.CheckTracksCounter(); AdsGoogle.Ad_Interstitial(Context); } else { PageNumber = 3; NavigationTabBar.Model tabMessages = Models.FirstOrDefault(a => a.Title == Context.GetText(Resource.String.Lbl_messages)); tabMessages?.HideBadge(); Context.ShowChat(); } break; case 3: if (AppSettings.ShowTrending) { PageNumber = 3; NavigationTabBar.Model tabMessages = Models.FirstOrDefault(a => a.Title == Context.GetText(Resource.String.Lbl_messages)); tabMessages?.HideBadge(); Context.ShowChat(); } else { PageNumber = 4; ShowFragment4(); } break; case 4: PageNumber = 4; ShowFragment4(); break; default: PageNumber = 0; ShowFragment0(); break; } } catch (Exception exception) { Console.WriteLine(exception); } }
public void OnClick(View v) { try { switch (v.Id) { case Resource.Id.llHome: PageNumber = 0; EnableNavigationButton(HomeImage); ShowFragment0(); Context?.TracksCounter?.CheckTracksCounter(); break; case Resource.Id.llTrend: if (AppSettings.ShowTrending) { PageNumber = 1; EnableNavigationButton(TrendImage); ShowFragment1(); Context?.TracksCounter?.CheckTracksCounter(); AdsGoogle.Ad_Interstitial(Context); } else { PageNumber = 2; EnableNavigationButton(NotificationImage); ShowNotificationBadge(false); ShowFragment2(); Context?.TracksCounter?.CheckTracksCounter(); AdsGoogle.Ad_RewardedVideo(Context); } break; case Resource.Id.llNotification: if (AppSettings.ShowTrending) { PageNumber = 2; EnableNavigationButton(NotificationImage); ShowNotificationBadge(false); ShowFragment2(); Context?.TracksCounter?.CheckTracksCounter(); AdsGoogle.Ad_Interstitial(Context); } else { PageNumber = 3; EnableNavigationButton(MessagesImage); //NavigationTabBar.Model tabMessages = Models.FirstOrDefault(a => a.Title == Context.GetText(Resource.String.Lbl_messages)); //tabMessages?.HideBadge(); Context.ShowChat(); } break; case Resource.Id.llMessages: if (AppSettings.ShowTrending) { PageNumber = 3; EnableNavigationButton(MessagesImage); //NavigationTabBar.Model tabMessages = Models.FirstOrDefault(a => a.Title == Context.GetText(Resource.String.Lbl_messages)); //tabMessages?.HideBadge(); Context.ShowChat(); } else { PageNumber = 4; EnableNavigationButton(ProfileImage); ShowFragment4(); Context.ProfileFragment?.GetMyInfoData(); } break; case Resource.Id.llProfile: PageNumber = 4; EnableNavigationButton(ProfileImage); ShowFragment4(); break; default: PageNumber = 0; EnableNavigationButton(HomeImage); ShowFragment0(); break; } } catch (Exception e) { Console.WriteLine(e); } }
protected override void OnCreate(Bundle savedInstanceState) { try { base.OnCreate(savedInstanceState); View mContentView = Window.DecorView; var uiOptions = (int)mContentView.SystemUiVisibility; var newUiOptions = (int)uiOptions; newUiOptions |= (int)SystemUiFlags.Fullscreen; newUiOptions |= (int)SystemUiFlags.HideNavigation; mContentView.SystemUiVisibility = (StatusBarVisibility)newUiOptions; Window.AddFlags(WindowManagerFlags.Fullscreen); SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base); // Create your application here SetContentView(Resource.Layout.edit_color_layout); MAutoResizeEditText = (AutofitEdittext)FindViewById(Resource.Id.rEdittext); var fontTxt6 = Typeface.CreateFromAsset(Assets, "SF-UI-Display-Regular.ttf"); var mEmojiTypeFace = Typeface.CreateFromAsset(Assets, "emojione-android.ttf"); NewColorView = FindViewById <NiceArtEditorView>(Resource.Id.imgColorView); NewColorEditor = new NiceArtEditor.Builder(this, NewColorView, ContentResolver) .SetPinchTextScalable(true) // set false to disable pinch to zoom on text insertion.By default its true .SetDefaultEmojiTypeface(mEmojiTypeFace) // set default font TypeFace to add emojis .Build(); // build NiceArt Editor sdk NewColorEditor.SetOnNiceArtEditorListener(this); //Setup the color picker for text color AddTextColorPickerRecyclerView = FindViewById <RecyclerView>(Resource.Id.add_text_color_picker_recycler_view); FontTypeFaceRecyclerView = FindViewById <RecyclerView>(Resource.Id.fontTypeFace_recycler_view); //Color MColorFragment = new ColorFragment(NewColorEditor, this); LayoutManager = new LinearLayoutManager(this, LinearLayoutManager.Horizontal, false); AddTextColorPickerRecyclerView.SetLayoutManager(LayoutManager); AddTextColorPickerRecyclerView.HasFixedSize = true; LayoutManagerTypeFace = new LinearLayoutManager(this, LinearLayoutManager.Horizontal, false); FontTypeFaceRecyclerView.SetLayoutManager(LayoutManagerTypeFace); FontTypeFaceRecyclerView.HasFixedSize = true; ColorPickerAdapter = new ColorPickerAdapter(this, ColorType.ColorGradient, false); ColorPickerAdapter.ItemClick += ColorPickerAdapterOnItemClick; AddTextColorPickerRecyclerView.SetAdapter(ColorPickerAdapter); TypeFaceAdapter = new FontTypeFaceAdapter(this); TypeFaceAdapter.ItemClick += TypeFaceAdapterOnItemClick; FontTypeFaceRecyclerView.SetAdapter(TypeFaceAdapter); CloseImageView = FindViewById <ImageView>(Resource.Id.imgClose); SaveTextView = FindViewById <TextView>(Resource.Id.imgSave); ColorTextView = FindViewById <TextView>(Resource.Id.txtColor); SaveTextView.Tag = "Add"; SaveTextView.Text = GetText(Resource.String.Lbl_Add); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, ColorTextView, "\uf37b"); CloseImageView.Click += CloseImageViewOnClick; SaveTextView.Click += SaveTextViewOnClick; ColorTextView.Click += ColorTextViewOnClick; SaveTextView.SetTypeface(fontTxt6, TypefaceStyle.Normal); var display = WindowManager.DefaultDisplay; var size = new Point(); display.GetSize(size); Width = size.X; Height = size.Y; int[] color = { Color.ParseColor("#6ec052"), Color.ParseColor("#28c4f3") }; var(gradient, bitmap) = ColorUtil.GetGradientDrawable(this, color, Width, Height); if (bitmap != null) { NewColorEditor.ClearAllViews(); NewColorView.GetSource().ClearColorFilter(); NewColorView.GetSource()?.SetImageBitmap(bitmap); } if ((int)Build.VERSION.SdkInt < 23) { if (!Directory.Exists(Methods.Path.FolderDcimNiceArt)) { Directory.CreateDirectory(Methods.Path.FolderDcimNiceArt); } } else { RequestPermissions(new[] { Manifest.Permission.ReadExternalStorage, Manifest.Permission.WriteExternalStorage }, 10); } AdsGoogle.Ad_RewardedVideo(this); } catch (Exception e) { Console.WriteLine(e); } }
protected override void OnCreate(Bundle savedInstanceState) { try { // Check if we're running on Android 5.0 or higher if ((int)Build.VERSION.SdkInt < 23) { } else { Window.AddFlags(WindowManagerFlags.TranslucentNavigation); } base.OnCreate(savedInstanceState); IMethods.IApp.FullScreenApp(this); var view = MyContextWrapper.GetContentView(this, Settings.Lang, Resource.Layout.Groups_Layout); if (view != null) { SetContentView(view); } else { SetContentView(Resource.Layout.Groups_Layout); } var groupsType = Intent.GetStringExtra("GroupsType") ?? "Data not available"; if (groupsType != "Data not available" && !string.IsNullOrEmpty(groupsType)) { GroupsManage_Type = groupsType; } var dataUser = Intent.GetStringExtra("UserID") ?? "Data not available"; if (dataUser != "Data not available" && !string.IsNullOrEmpty(groupsType)) { UserID = dataUser; } var ToolBar = FindViewById <Toolbar>(Resource.Id.toolbar); if (ToolBar != null) { ToolBar.Title = GetText(Resource.String.Lbl_ExploreGroup); Txt_Create = FindViewById <TextView>(Resource.Id.toolbar_title); SetSupportActionBar(ToolBar); SupportActionBar.SetDisplayShowCustomEnabled(true); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetHomeButtonEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); } GroupsSection = (LinearLayout)FindViewById(Resource.Id.groupLiner); ManageGroupsSection = (LinearLayout)FindViewById(Resource.Id.ManagegroupLiner); GroupsRecylerView = (RecyclerView)FindViewById(Resource.Id.Recyler); ManageGroupsRecylerView = (RecyclerView)FindViewById(Resource.Id.groupsRecyler); Groups_Empty = (LinearLayout)FindViewById(Resource.Id.Page_LinerEmpty); IconGroups_Empty = (TextView)FindViewById(Resource.Id.Group_icon); Txt_Count_ManageGroups = (TextView)FindViewById(Resource.Id.tv_groupscount); IconMore_ManageGroups = (TextView)FindViewById(Resource.Id.iv_more_groups); Txt_Count_ManageGroups.Visibility = ViewStates.Gone; IconMore_ManageGroups.Visibility = ViewStates.Gone; swipeRefreshLayout = FindViewById <SwipeRefreshLayout>(Resource.Id.swipeRefreshLayout); swipeRefreshLayout.SetColorSchemeResources(Android.Resource.Color.HoloBlueLight, Android.Resource.Color.HoloGreenLight, Android.Resource.Color.HoloOrangeLight, Android.Resource.Color.HoloRedLight); swipeRefreshLayout.Refreshing = true; swipeRefreshLayout.Enabled = true; Btn_SearchRandom = FindViewById <Button>(Resource.Id.SearchRandom_Button); IMethods.Set_TextViewIcon("1", IconMore_ManageGroups, IonIcons_Fonts.ChevronRight); IMethods.Set_TextViewIcon("2", IconGroups_Empty, "\uf0c0"); Groups_Empty.Visibility = ViewStates.Gone; //************************************************************************* GroupsRecylerView.SetLayoutManager(new GridLayoutManager(this, 3)); GroupsAdapter = new GroupsAdapter(this); GroupsRecylerView.AddItemDecoration(new GridSpacingItemDecoration(2, 3, true)); GroupsRecylerView.SetAdapter(GroupsAdapter); GroupsRecylerView.NestedScrollingEnabled = false; //************************************************************************* //Get Manage my or user groups and set any type adapter ManageGroupsRecylerView.SetLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.Horizontal, false)); ManageGroupsAdapter = new UserGroupsAdapter(this); ManageGroupsRecylerView.SetAdapter(ManageGroupsAdapter); ManageGroupsRecylerView.NestedScrollingEnabled = false; //When you have finished fetching the Manage Groups, the second connection is initiated by fetching Get_CommunitiesList_Group() Get_ManageGroups(); //************************************************************************* //Show Ads AdsGoogle.Ad_RewardedVideo(this); } catch (Exception e) { Crashes.TrackError(e); } }