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(); GetMessages(); InterstitialAd = AdsFacebook.InitInterstitial(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); 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) { 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); if (toolBar != null) { toolBar.Title = GetText(Resource.String.Lbl_Support); 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 SettingsSupportPrefsFragment(this))?.Commit(); 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.ArticlesViewLayout); Instance = this; ArticlesId = Intent.GetStringExtra("Id") ?? ""; //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); GetDataArticles(); RewardedVideo = AdsFacebook.InitRewardVideo(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.MainRecylerViewLayout); //Get Value And Set Toolbar InitToolbar(); SetRecyclerViewAdapters(); StartApiService(); InterstitialAd = AdsFacebook.InitInterstitial(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); Instance = this; //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); StartApiService(); RewardedVideo = AdsFacebook.InitRewardVideo(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(); InterstitialAd = AdsFacebook.InitInterstitial(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.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); } }
private void InitComponent(View view) { try { MRecycler = (RecyclerView)view.FindViewById(Resource.Id.recyler); EmptyStateLayout = view.FindViewById <ViewStub>(Resource.Id.viewStub); SwipeRefreshLayout = (SwipeRefreshLayout)view.FindViewById(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; SwipeRefreshLayout.SetProgressBackgroundColorSchemeColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#424242") : Color.ParseColor("#f7f7f7")); SwipeRefreshLayout.Refresh += SwipeRefreshLayoutOnRefresh; LayoutPageRequest = (RelativeLayout)view.FindViewById(Resource.Id.layout_friend_Request); LayoutPageRequest.Visibility = ViewStates.Gone; LinearLayout adContainer = view.FindViewById <LinearLayout>(Resource.Id.bannerContainer); BannerAd = AdsFacebook.InitAdView(Activity, 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.ViewFullPostLayout); PostId = Intent?.GetStringExtra("Id") ?? string.Empty; //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); StartApiService(); InterstitialAd = AdsFacebook.InitInterstitial(this); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void InitComponent() { try { MainLayout = FindViewById <RelativeLayout>(Resource.Id.mainLayout); MainLayout.SetBackgroundResource(AppSettings.SetTabDarkTheme ? Resource.Drawable.linear_gradient_drawable_Dark : Resource.Drawable.linear_gradient_drawable); BackIcon = FindViewById <TextView>(Resource.Id.IconBack); LiveWithIcon = FindViewById <TextView>(Resource.Id.IconLiveWith); EdtLiveWith = FindViewById <EditText>(Resource.Id.LiveWithEditText); CarIcon = FindViewById <TextView>(Resource.Id.IconCar); EdtCar = FindViewById <EditText>(Resource.Id.CarEditText); ReligionIcon = FindViewById <TextView>(Resource.Id.IconReligion); EdtReligion = FindViewById <EditText>(Resource.Id.ReligionEditText); SmokeIcon = FindViewById <TextView>(Resource.Id.IconSmoke); EdtSmoke = FindViewById <EditText>(Resource.Id.SmokeEditText); DrinkIcon = FindViewById <TextView>(Resource.Id.IconDrink); EdtDrink = FindViewById <EditText>(Resource.Id.DrinkEditText); TravelIcon = FindViewById <TextView>(Resource.Id.IconTravel); EdtTravel = FindViewById <EditText>(Resource.Id.TravelEditText); BtnSave = FindViewById <Button>(Resource.Id.ApplyButton); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, BackIcon, IonIconsFonts.ChevronLeft); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, LiveWithIcon, FontAwesomeIcon.GlobeAmericas); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, CarIcon, FontAwesomeIcon.Car); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, ReligionIcon, FontAwesomeIcon.Church); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, SmokeIcon, FontAwesomeIcon.Smoking); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, DrinkIcon, FontAwesomeIcon.Beer); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, TravelIcon, FontAwesomeIcon.PlaneDeparture); Methods.SetColorEditText(EdtLiveWith, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtCar, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtReligion, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtSmoke, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtDrink, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtTravel, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetFocusable(EdtLiveWith); Methods.SetFocusable(EdtCar); Methods.SetFocusable(EdtReligion); Methods.SetFocusable(EdtSmoke); Methods.SetFocusable(EdtDrink); Methods.SetFocusable(EdtTravel); LinearLayout adContainer = FindViewById <LinearLayout>(Resource.Id.bannerContainer); BannerAd = AdsFacebook.InitAdView(this, adContainer); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent() { try { TxtAppName = FindViewById <TextView>(Resource.Id.appName); TxtPackageName = FindViewById <TextView>(Resource.Id.appUsername); IconVersion = FindViewById <TextView>(Resource.Id.iconVersion); TxtCountVersion = FindViewById <TextView>(Resource.Id.countVersion); IconChangelog = FindViewById <TextView>(Resource.Id.iconChangelog); IconRateApp = FindViewById <TextView>(Resource.Id.iconRateApp); IconTerms = FindViewById <TextView>(Resource.Id.iconTerms); IconPrivacy = FindViewById <TextView>(Resource.Id.iconPrivacy); IconAbout = FindViewById <TextView>(Resource.Id.iconAbout); CardView1 = FindViewById <CardView>(Resource.Id.cardView1); CardView2 = FindViewById <CardView>(Resource.Id.cardView2); CardView1.SetBackgroundColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#282828") : Color.ParseColor("#efefef")); CardView2.SetBackgroundColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#282828") : Color.ParseColor("#efefef")); LayoutChangelog = FindViewById <LinearLayout>(Resource.Id.layoutChangelog); LayoutRate = FindViewById <LinearLayout>(Resource.Id.layoutRate); LayoutTerms = FindViewById <LinearLayout>(Resource.Id.layoutTerms); LayoutPrivacy = FindViewById <LinearLayout>(Resource.Id.layoutPrivacy); LayoutAbout = FindViewById <LinearLayout>(Resource.Id.layoutAbout); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconVersion, FontAwesomeIcon.InfoCircle); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconChangelog, FontAwesomeIcon.SyncAlt); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconRateApp, IonIconsFonts.AndroidStarHalf); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, IconTerms, FontAwesomeIcon.FileContract); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconPrivacy, FontAwesomeIcon.UserSecret); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeBrands, IconAbout, FontAwesomeIcon.Medapps); TxtAppName.Text = AppSettings.ApplicationName; PackageInfo info = PackageManager.GetPackageInfo(PackageName, 0); //int versionNumber = info.VersionCode; string versionName = info.VersionName; TxtPackageName.Text = PackageName; TxtCountVersion.Text = versionName; var nativeAdLayout = FindViewById <NativeAdLayout>(Resource.Id.native_ad_container); nativeAdLayout.Visibility = ViewStates.Gone; AdsFacebook.InitNative(this, nativeAdLayout, null); } catch (Exception e) { Console.WriteLine(e); } }
protected void ShowFacebookAds(View view) { try { var mRecycler = (RecyclerView)view.FindViewById(Resource.Id.recyler); var containerLayout = view.FindViewById <LinearLayout>(Resource.Id.bannerContainer); AdsFacebook.InitAdView(Activity, containerLayout, mRecycler); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent() { try { SupportFragmentManager.BeginTransaction().Replace(Resource.Id.content_frame, new TellFriendPrefsFragment(this)).Commit(); LinearLayout adContainer = FindViewById <LinearLayout>(Resource.Id.bannerContainer); BannerAd = AdsFacebook.InitAdView(this, adContainer); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void InitComponent() { try { MainLayout = FindViewById <RelativeLayout>(Resource.Id.mainLayout); MainLayout.SetBackgroundResource(AppSettings.SetTabDarkTheme ? Resource.Drawable.linear_gradient_drawable_Dark : Resource.Drawable.linear_gradient_drawable); BackIcon = FindViewById <TextView>(Resource.Id.IconBack); EthnicityIcon = FindViewById <TextView>(Resource.Id.IconEthnicity); EdtEthnicity = FindViewById <EditText>(Resource.Id.EthnicityEditText); BodyIcon = FindViewById <TextView>(Resource.Id.IconBody); EdtBody = FindViewById <EditText>(Resource.Id.BodyEditText); HeightIcon = FindViewById <TextView>(Resource.Id.IconHeight); EdtHeight = FindViewById <EditText>(Resource.Id.HeightEditText); HairColorIcon = FindViewById <TextView>(Resource.Id.IconHairColor); EdtHairColor = FindViewById <EditText>(Resource.Id.HairColorEditText); BtnSave = FindViewById <Button>(Resource.Id.ApplyButton); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, BackIcon, IonIconsFonts.ChevronLeft); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, EthnicityIcon, FontAwesomeIcon.TheaterMasks); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, BodyIcon, FontAwesomeIcon.Male); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, HeightIcon, FontAwesomeIcon.TextHeight); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, HairColorIcon, FontAwesomeIcon.Cannabis); Methods.SetColorEditText(EdtEthnicity, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtBody, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtHeight, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtHairColor, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetFocusable(EdtEthnicity); Methods.SetFocusable(EdtBody); Methods.SetFocusable(EdtHairColor); Methods.SetFocusable(EdtHeight); LinearLayout adContainer = FindViewById <LinearLayout>(Resource.Id.bannerContainer); BannerAd = AdsFacebook.InitAdView(this, adContainer); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent() { try { MainLayout = FindViewById <RelativeLayout>(Resource.Id.mainLayout); MainLayout.SetBackgroundResource(AppSettings.SetTabDarkTheme ? Resource.Drawable.linear_gradient_drawable_Dark : Resource.Drawable.linear_gradient_drawable); BackIcon = FindViewById <TextView>(Resource.Id.IconBack); CharacterIcon = FindViewById <TextView>(Resource.Id.IconCharacter); EdtCharacter = FindViewById <EditText>(Resource.Id.CharacterEditText); ChildrenIcon = FindViewById <TextView>(Resource.Id.IconChildren); EdtChildren = FindViewById <EditText>(Resource.Id.ChildrenEditText); FriendsIcon = FindViewById <TextView>(Resource.Id.IconFriends); EdtFriends = FindViewById <EditText>(Resource.Id.FriendsEditText); PetsIcon = FindViewById <TextView>(Resource.Id.IconPets); EdtPets = FindViewById <EditText>(Resource.Id.PetsEditText); BtnSave = FindViewById <Button>(Resource.Id.ApplyButton); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, BackIcon, IonIconsFonts.ChevronLeft); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, CharacterIcon, FontAwesomeIcon.YinYang); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, ChildrenIcon, FontAwesomeIcon.Baby); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, FriendsIcon, FontAwesomeIcon.UserFriends); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, PetsIcon, FontAwesomeIcon.Cat); Methods.SetColorEditText(EdtCharacter, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtChildren, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtFriends, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(EdtPets, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetFocusable(EdtCharacter); Methods.SetFocusable(EdtChildren); Methods.SetFocusable(EdtFriends); Methods.SetFocusable(EdtPets); LinearLayout adContainer = FindViewById <LinearLayout>(Resource.Id.bannerContainer); BannerAd = AdsFacebook.InitAdView(this, adContainer); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent() { try { IconBack = FindViewById <TextView>(Resource.Id.IconBack); Image = FindViewById <ImageView>(Resource.Id.image); Username = FindViewById <TextView>(Resource.Id.username); IconCountry = FindViewById <TextView>(Resource.Id.IconCountry); CountryText = FindViewById <TextView>(Resource.Id.CountryText); CountTracks = FindViewById <TextView>(Resource.Id.CountTracks); LayoutFollowers = FindViewById <LinearLayout>(Resource.Id.followersLayout); CountFollowers = FindViewById <TextView>(Resource.Id.countFollowers); LayoutFollowing = FindViewById <LinearLayout>(Resource.Id.followingLayout); CountFollowing = FindViewById <TextView>(Resource.Id.countFollowing); LayoutEmail = FindViewById <LinearLayout>(Resource.Id.LayoutEmail); IconEmail = FindViewById <TextView>(Resource.Id.IconEmail); EmailText = FindViewById <TextView>(Resource.Id.EmailText); IconGender = FindViewById <TextView>(Resource.Id.IconGender); GenderText = FindViewById <TextView>(Resource.Id.GenderText); LayoutWebsite = FindViewById <LinearLayout>(Resource.Id.LayoutWebsite); IconWebsite = FindViewById <TextView>(Resource.Id.IconWebsite); WebsiteText = FindViewById <TextView>(Resource.Id.WebsiteText); LayoutFacebook = FindViewById <LinearLayout>(Resource.Id.LayoutFacebook); IconFacebook = FindViewById <TextView>(Resource.Id.IconFacebook); FacebookText = FindViewById <TextView>(Resource.Id.FacebookText); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconBack, IonIconsFonts.IosArrowBack); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconCountry, IonIconsFonts.Pin); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconEmail, IonIconsFonts.AndroidMail); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconWebsite, IonIconsFonts.AndroidGlobe); FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconFacebook, IonIconsFonts.SocialFacebookOutline); var nativeAdLayout = FindViewById <NativeAdLayout>(Resource.Id.native_ad_container); nativeAdLayout.Visibility = ViewStates.Gone; AdsFacebook.InitNative(this, nativeAdLayout, null); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent(View view) { try { MRecycler = (RecyclerView)view.FindViewById(Resource.Id.recyler); EmptyStateLayout = view.FindViewById <ViewStub>(Resource.Id.viewStub); SwipeRefreshLayout = (SwipeRefreshLayout)view.FindViewById(Resource.Id.swipeRefreshLayout); SwipeRefreshLayout.SetColorSchemeResources(Android.Resource.Color.HoloBlueLight, Android.Resource.Color.HoloGreenLight, Android.Resource.Color.HoloOrangeLight, Android.Resource.Color.HoloRedLight); SwipeRefreshLayout.Refreshing = false; SwipeRefreshLayout.Enabled = false; SwipeRefreshLayout.SetProgressBackgroundColorSchemeColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#424242") : Color.ParseColor("#f7f7f7")); LinearLayout adContainer = view.FindViewById <LinearLayout>(Resource.Id.bannerContainer); BannerAd = AdsFacebook.InitAdView(Activity, adContainer); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent(View view) { try { MRecycler = (RecyclerView)view.FindViewById(Resource.Id.recyler); EmptyStateLayout = view.FindViewById <ViewStub>(Resource.Id.viewStub); SwipeRefreshLayout = (SwipeRefreshLayout)view.FindViewById(Resource.Id.swipeRefreshLayout); SwipeRefreshLayout.SetColorSchemeResources(Android.Resource.Color.HoloBlueLight, Android.Resource.Color.HoloGreenLight, Android.Resource.Color.HoloOrangeLight, Android.Resource.Color.HoloRedLight); SwipeRefreshLayout.Refreshing = false; SwipeRefreshLayout.Enabled = true; SwipeRefreshLayout.SetProgressBackgroundColorSchemeColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#424242") : Color.ParseColor("#f7f7f7")); SwipeRefreshLayout.Refresh += SwipeRefreshLayoutOnRefresh; LayoutFriendRequest = (RelativeLayout)view.FindViewById(Resource.Id.layout_friend_Request); FriendRequestImage1 = view.FindViewById <CircleImageView>(Resource.Id.image_page_1); FriendRequestImage2 = view.FindViewById <CircleImageView>(Resource.Id.image_page_2); FriendRequestImage3 = view.FindViewById <CircleImageView>(Resource.Id.image_page_3); TxTFriendRequest = (TextView)view.FindViewById(Resource.Id.tv_Friends_connection); TxtAllFriendRequest = (TextView)view.FindViewById(Resource.Id.tv_Friends); if (AppSettings.ConnectivitySystem == 1) { TxTFriendRequest.Text = Context.GetString(Resource.String.Lbl_FollowRequest); TxtAllFriendRequest.Text = Context.GetString(Resource.String.Lbl_View_All_FollowRequest); } LayoutFriendRequest.Click += LayoutFriendRequestOnClick; LayoutFriendRequest.Visibility = ViewStates.Gone; LinearLayout adContainer = view.FindViewById <LinearLayout>(Resource.Id.bannerContainer); BannerAd = AdsFacebook.InitAdView(Activity, adContainer); } 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 data = Intent?.GetStringExtra("PostId") ?? "Data not available"; if (data != "Data not available" && !string.IsNullOrEmpty(data)) { IdPost = data; } var dataType = Intent?.GetStringExtra("PostType") ?? "Data not available"; if (dataType != "Data not available" && !string.IsNullOrEmpty(dataType)) { TypePost = dataType; } //Get Value And Set Toolbar InitComponent(); InitToolbar(); SetRecyclerViewAdapters(); StartApiService(); RewardedVideo = AdsFacebook.InitRewardVideo(this); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void SetRecyclerViewAdapters() { try { MainRecyclerView = FindViewById <WRecyclerView>(Resource.Id.Recyler); PostFeedAdapter = new NativePostAdapter(this, "", MainRecyclerView, NativeFeedType.Saved); 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; SwipeRefreshLayout.SetProgressBackgroundColorSchemeColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#424242") : Color.ParseColor("#f7f7f7")); MainRecyclerView.SetXAdapter(PostFeedAdapter, SwipeRefreshLayout); 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); Methods.App.FullScreenApp(this); SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base); // Create your application here SetContentView(Resource.Layout.ButtomSheetLooksEdit); //Get Value And Set Toolbar InitComponent(); GetMyInfoData(); InterstitialAd = AdsFacebook.InitInterstitial(this); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent(View view) { try { MRecycler = (RecyclerView)view.FindViewById(Resource.Id.recyler); EmptyStateLayout = view.FindViewById <ViewStub>(Resource.Id.viewStub); SwipeRefreshLayout = (SwipeRefreshLayout)view.FindViewById(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; SwipeRefreshLayout.SetProgressBackgroundColorSchemeColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#424242") : Color.ParseColor("#f7f7f7")); SwipeRefreshLayout.Refresh += SwipeRefreshLayoutOnRefresh; LayoutGroupRequest = (RelativeLayout)view.FindViewById(Resource.Id.layout_friend_Request); TitGroupRequest = (TextView)view.FindViewById(Resource.Id.tv_Friends_connection); DesGroupRequest = (TextView)view.FindViewById(Resource.Id.tv_Friends); TitGroupRequest.Text = GetText(Resource.String.Lbl_GroupRequest); DesGroupRequest.Text = GetText(Resource.String.Lbl_ViewAllInviteRequest); GroupRequestImage1 = view.FindViewById <CircleImageView>(Resource.Id.image_page_1); GroupRequestImage2 = view.FindViewById <CircleImageView>(Resource.Id.image_page_2); GroupRequestImage3 = view.FindViewById <CircleImageView>(Resource.Id.image_page_3); LayoutGroupRequest.Click += LayoutGroupRequestOnClick; LayoutGroupRequest.Visibility = ViewStates.Gone; LinearLayout adContainer = view.FindViewById <LinearLayout>(Resource.Id.bannerContainer); BannerAd = AdsFacebook.InitAdView(Activity, adContainer); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }