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.SettingsLayout); //Get Value And Set Toolbar InitToolbar(); SupportFragmentManager.BeginTransaction().Replace(Resource.Id.content_frame, new SettingsPrefFragment(this)).Commit(); LinearLayout adContainer = FindViewById <LinearLayout>(Resource.Id.bannerContainer); BannerAd = AdsFacebook.InitAdView(this, adContainer); AdsGoogle.Ad_Interstitial(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); SetContentView(Resource.Layout.Settings_Layout); var toolBar = FindViewById <Toolbar>(Resource.Id.toolbar); toolBar.Title = GetText(Resource.String.Lbl_Settings); SetSupportActionBar(toolBar); SupportActionBar.SetDisplayShowCustomEnabled(true); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetHomeButtonEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); SupportFragmentManager.BeginTransaction().Replace(Resource.Id.content_frame, new SettingsPrefFragment(this)).Commit(); AdsGoogle.Ad_Interstitial(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); // Create your application here SetContentView(Resource.Layout.RecyclerDefaultLayout); Instance = this; //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); GetLastChatLocal(); AdsGoogle.Ad_Interstitial(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(); SwipeRefreshLayout.Refresh += SwipeRefreshLayoutOnRefresh; MAdapter.ItemClick += FavoritesAdapterOnItemClick; //Get Data Api StartApiService(); AdsGoogle.Ad_Interstitial(Context); 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); 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(); StartApiService(); AdsGoogle.Ad_Interstitial(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.InvitationLinksLayout); //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); StartApiService(); AdsGoogle.Ad_Interstitial(this); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { try { View view = inflater.Inflate(Resource.Layout.Pix_ProfileLayout, container, false); InitComponent(view); InitToolbar(view); SetRecyclerViewAdapters(view); AddOrRemoveEvent(true); LoadProfile(); StartApiService(); AdsGoogle.Ad_Interstitial(Activity); return(view); } catch (Exception exception) { Console.WriteLine(exception); 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.MainRecylerViewLayout); var dataId = Intent?.GetStringExtra("Id") ?? "Data not available"; if (dataId != "Data not available" && !string.IsNullOrEmpty(dataId)) IdHash = dataId; var dataTag = Intent?.GetStringExtra("Tag") ?? "Data not available"; if (dataTag != "Data not available" && !string.IsNullOrEmpty(dataTag)) Tag = dataTag; //Get Value And Set Toolbar InitToolbar(); SetRecyclerViewAdapters(); StartApiService(); AdsGoogle.Ad_Interstitial(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); PageId = Intent?.GetStringExtra("PagesId"); if (!string.IsNullOrEmpty(Intent?.GetStringExtra("PageData"))) { PageData = JsonConvert.DeserializeObject <PageClass>(Intent?.GetStringExtra("PageData")); } //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); AdsGoogle.Ad_Interstitial(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.MarketMain_Layout); Instance = this; //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); LoadDataApi(); AdsGoogle.Ad_Interstitial(this); } catch (Exception e) { Console.WriteLine(e); } }
protected override void OnCreate(Bundle savedInstanceState) { try { base.OnCreate(savedInstanceState); IMethods.IApp.FullScreenApp(this); SetContentView(Resource.Layout.Settings_Layout); var ToolBar = FindViewById <Android.Support.V7.Widget.Toolbar> (Resource.Id.settingstoolbar); ToolBar.Title = this.GetText(Resource.String.Lbl_Settings); SetSupportActionBar(ToolBar); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); var ff = FragmentManager.BeginTransaction().Replace(Resource.Id.content_frame, new SettingsPrefsFragment(this)).Commit(); AdsGoogle.Ad_Interstitial(this); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent(View view) { try { TabLayout = view.FindViewById <TabLayout>(Resource.Id.Searchtabs); ViewPager = view.FindViewById <ViewPager>(Resource.Id.Searchviewpager); AppBarLayout = view.FindViewById <AppBarLayout>(Resource.Id.mainAppBarLayout); AppBarLayout.SetExpanded(true); //Set Tab ViewPager.OffscreenPageLimit = 2; SetUpViewPager(ViewPager); TabLayout.SetupWithViewPager(ViewPager); FilterButton = (TextView)view.FindViewById(Resource.Id.filter_icon); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, FilterButton, IonIconsFonts.AndroidOptions); FilterButton.Click += FilterButtonOnClick; GetAppData(); AdsGoogle.Ad_Interstitial(Context); } catch (Exception e) { Console.WriteLine(e); } }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { try { View view = inflater.Inflate(Resource.Layout.ArtistsProfileLayout, container, false); UserId = Arguments.GetString("UserId") ?? ""; DataUser = JsonConvert.DeserializeObject <UserDataObject>(Arguments.GetString("ItemData") ?? ""); InitComponent(view); InitToolbar(view); SetRecyclerViewAdapters(); GetMyInfoData(); AdsGoogle.Ad_Interstitial(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.MyChannelFragment_Layout, container, false); //Get Value And Set Toolbar InitComponent(view); InitToolbar(view); InitTab(); GetDataChannelApi(); SubscribeChannelButton.Click += SubscribeChannelButtonOnClick; IconSettings.Click += IconSettingsOnClick; AdsGoogle.Ad_Interstitial(MainContext); 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); SetContentView(Resource.Layout.Settings_Layout); var toolBar = FindViewById <Toolbar>(Resource.Id.toolbar); if (toolBar != null) { toolBar.Title = GetText(Resource.String.Lbl_GeneralAccount); SetSupportActionBar(toolBar); SupportActionBar.SetDisplayShowCustomEnabled(true); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetHomeButtonEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); } SupportFragmentManager.BeginTransaction().Replace(Resource.Id.content_frame, new GeneralAccountPrefsFragment(this)).Commit(); AdsGoogle.Ad_Interstitial(this); LinearLayout adContainer = FindViewById <LinearLayout>(Resource.Id.bannerContainer); BannerAd = AdsFacebook.InitAdView(this, adContainer); } 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.RecyclerDefaultLayout); UserId = Intent.GetStringExtra("UserId") ?? ""; //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); GetFiles(); AdsGoogle.Ad_Interstitial(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.GroupGeneralLayout); var id = Intent?.GetStringExtra("GroupId") ?? "Data not available"; if (id != "Data not available" && !string.IsNullOrEmpty(id)) { GroupsId = id; } //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); Get_Data_Group(); AdsGoogle.Ad_Interstitial(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.MyProfile_Layout); //Get Value And Set Toolbar InitComponent(); InitToolbar(); MAdView = FindViewById <AdView>(Resource.Id.adView); AdsGoogle.InitAdView(MAdView, null); GetMyInfoData(); AdsGoogle.Ad_Interstitial(this); } catch (Exception e) { Console.WriteLine(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); // Create your application here SetContentView(Resource.Layout.Native_Comment_Layout); Instance = this; Type = Intent.GetStringExtra("Type") ?? string.Empty; PostId = Intent.GetStringExtra("PostId") ?? string.Empty; PostObject = JsonConvert.DeserializeObject <PostDataObject>(Intent.GetStringExtra("PostObject")); //Get Value And Set Toolbar InitComponent(); SetRecyclerViewAdapters(); LoadDataPost(); AdsGoogle.Ad_Interstitial(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); var contactsType = Intent.GetStringExtra("ContactsType") ?? "Data not available"; if (contactsType != "Data not available" && !string.IsNullOrEmpty(contactsType)) { TypeContacts = contactsType; } UserId = Intent.GetStringExtra("UserId"); //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); LoadContacts(); AdsGoogle.Ad_Interstitial(this); } catch (Exception e) { Console.WriteLine(e); } }
public void OnComplete() { try { IndexItem++; if (StoryList.Count > 0 && StoryList.Count > IndexItem) { DataStories = StoryList[IndexItem]; StoriesProgress = null !; LoadData(DataStories); DataStories.ProfileIndicator = AppSettings.StoryReadColor; GlobalContext?.NewsFeedTab.PostFeedAdapter?.HolderStory?.StoryAdapter.NotifyItemChanged(IndexItem, "StoryRefresh"); } else { AdsGoogle.Ad_Interstitial(this); Finish(); } } 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); SetContentView(Resource.Layout.Settings_Layout); var toolBar = FindViewById <Toolbar>(Resource.Id.toolbar); if (toolBar != null) { toolBar.Title = GetText(Resource.String.Lbl_Message_Notifications); toolBar.SetTitleTextColor(Color.ParseColor(AppSettings.MainColor)); SetSupportActionBar(toolBar); SupportActionBar.SetDisplayShowCustomEnabled(true); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetHomeButtonEnabled(true); SupportActionBar.SetDisplayShowHomeEnabled(true); SupportActionBar.SetHomeAsUpIndicator(AppCompatResources.GetDrawable(this, AppSettings.FlowDirectionRightToLeft ? Resource.Drawable.ic_action_right_arrow_color : Resource.Drawable.ic_action_left_arrow_color)); } SupportFragmentManager.BeginTransaction().Replace(Resource.Id.content_frame, new SettingsNotificationPrefsFragment(this))?.Commit(); AdsGoogle.Ad_Interstitial(this); LinearLayout adContainer = FindViewById <LinearLayout>(Resource.Id.bannerContainer); BannerAd = AdsFacebook.InitAdView(this, adContainer); } 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); Window.SetSoftInputMode(SoftInput.AdjustNothing); Methods.App.FullScreenApp(this); // Create your application here SetContentView(Resource.Layout.Search_Layout); //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); DataKey = Intent.GetStringExtra("Key") ?? "Data not available"; if (DataKey != "Data not available" && !string.IsNullOrEmpty(DataKey)) { SearchText = DataKey; if (SearchText == "Random") { SearchText = "a"; } else { if (SearchView != null) { //SearchView.SetQuery(SearchText, false); SearchView.ClearFocus(); //SearchView.OnActionViewCollapsed(); } } } //Close keybourd InputMethodManager inputManager = (InputMethodManager)GetSystemService(InputMethodService); if (inputManager.IsActive) { if (ToolBar != null) { inputManager = (InputMethodManager)GetSystemService(InputMethodService); inputManager.HideSoftInputFromWindow(ToolBar.WindowToken, 0); } } SearchView.ClearFocus(); AdsGoogle.Ad_Interstitial(this); } catch (Exception e) { Console.WriteLine(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); // Create your application here SetContentView(Resource.Layout.Native_Reply_Comment_Layout); Instance = this; Type = Intent?.GetStringExtra("Type") ?? ""; IdComment = Intent?.GetStringExtra("Id") ?? ""; switch (Type) { case "Article": { ArticlesObject = JsonConvert.DeserializeObject <CommentsArticlesObject>(Intent?.GetStringExtra("Object") ?? ""); break; } case "Movies": { MoviesObject = JsonConvert.DeserializeObject <CommentsMoviesObject>(Intent?.GetStringExtra("Object") ?? ""); break; } } InitComponent(); SetRecyclerViewAdapters(); switch (Type) { case "Article": LoadCommentArticle(); break; case "Movies": LoadCommentMovies(); break; } AdsGoogle.Ad_Interstitial(this); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
public void OnComplete() { try { AdsGoogle.Ad_Interstitial(this); Finish(); } catch (Exception e) { Console.WriteLine(e); } }
protected override void OnCreate(Bundle savedInstanceState) { try { base.OnCreate(savedInstanceState); IMethods.IApp.FullScreenApp(this); // Set our view from the "BlockedUsers_Layout" layout resource 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(Android.Graphics.Color.ParseColor(AppSettings.MainColor)); var ToolBar = FindViewById <Toolbar>(Resource.Id.Searchtoolbar); ToolBar.Title = this.GetText(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); swipeRefreshLayout.Refreshing = true; swipeRefreshLayout.Enabled = true; Get_BlockedList(); AdsGoogle.Ad_Interstitial(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); } }
public override void OnViewCreated(View view, Bundle savedInstanceState) { try { InitComponent(view); InitToolbar(view); SetRecyclerViewAdapters(); StartApiService(); AdsGoogle.Ad_Interstitial(Activity); base.OnViewCreated(view, savedInstanceState); } 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(); StartApiService(); AdsGoogle.Ad_Interstitial(Context); return(view); } catch (Exception e) { Console.WriteLine(e); return(null); } }
public override void OnViewCreated(View view, Bundle savedInstanceState) { try { SongsType = Arguments.GetString("SongsType") ?? ""; InitComponent(view); InitToolbar(view); SetRecyclerViewAdapters(); GetSongsByType(); AdsGoogle.Ad_Interstitial(Activity); base.OnViewCreated(view, savedInstanceState); } catch (Exception e) { Console.WriteLine(e); } }