コード例 #1
0
        private void InitComponent()
        {
            try
            {
                MRecycler = (RecyclerView)FindViewById(Resource.Id.recyler);

                SwipeRefreshLayout = (SwipeRefreshLayout)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"));


                MAdView = FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, MRecycler);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #2
0
        private void InitComponent()
        {
            try
            {
                //Get values
                TxtNewplaylist = FindViewById <EditText>(Resource.Id.nameplaylist_Edit);
                TxtDescription = FindViewById <EditText>(Resource.Id.description_Edit);
                RbPrivate      = (RadioButton)FindViewById(Resource.Id.radioPrivate);
                RbPublic       = (RadioButton)FindViewById(Resource.Id.radioPublic);

                SaveTextView        = FindViewById <TextView>(Resource.Id.toolbar_title);
                SaveTextView.Click += SaveTextViewOnClick;

                MAdView = FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, null);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #3
0
        private void InitComponent()
        {
            try
            {
                MRecycler        = (RecyclerView)FindViewById(Resource.Id.recyler);
                EmptyStateLayout = FindViewById <ViewStub>(Resource.Id.viewStub);

                SwipeRefreshLayout = (SwipeRefreshLayout)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.SetPadding(5, 0, 0, 0);

                MAdView = FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, MRecycler);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #4
0
        private void InitComponent()
        {
            try
            {
                MRecycler        = (RecyclerView)FindViewById(Resource.Id.recyler);
                EmptyStateLayout = FindViewById <ViewStub>(Resource.Id.viewStub);

                SwipeRefreshLayout = (SwipeRefreshLayout)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"));

                MAdView = FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, MRecycler);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #5
0
        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 = (ImageView)view.FindViewById(Resource.Id.image_page_1);
                FriendRequestImage2 = (ImageView)view.FindViewById(Resource.Id.image_page_2);
                FriendRequestImage3 = (ImageView)view.FindViewById(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;

                MAdView = view.FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, MRecycler);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #6
0
        private void SetRecyclerViewAdapters(View view)
        {
            try
            {
                MoreRecylerView = (RecyclerView)view.FindViewById(Resource.Id.Recyler);
                MoreRecylerView.NestedScrollingEnabled = true;

                MoreSectionAdapter = new MoreSectionAdapter(Activity);

                switch (AppSettings.MoreTheme)
                {
                case MoreTheme.BeautyTheme:
                {
                    var layoutManager = new GridLayoutManager(Activity, 4);

                    var countListFirstRow = MoreSectionAdapter.SectionList.Where(q => q.StyleRow == 0).ToList().Count;

                    layoutManager.SetSpanSizeLookup(new MySpanSizeLookup2(countListFirstRow, 1, 4));    //20, 1, 4
                    MoreRecylerView.SetLayoutManager(layoutManager);
                    MoreRecylerView.SetAdapter(MoreSectionAdapter);
                    break;
                }

                default:
                    MoreRecylerView.SetLayoutManager(new LinearLayoutManager(Activity));
                    MoreRecylerView.SetAdapter(MoreSectionAdapter);
                    break;
                }
                //MoreRecylerView.HasFixedSize = true;
                MoreRecylerView.SetItemViewCacheSize(50);
                MoreRecylerView.GetLayoutManager().ItemPrefetchEnabled = true;

                MAdView = view.FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, MoreRecylerView);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #7
0
        private void InitComponent()
        {
            try
            {
                PasswordEditText = FindViewById <EditText>(Resource.Id.passwordEdit);
                DeleteCheckBox   = FindViewById <CheckBox>(Resource.Id.DeleteCheckBox);
                DeleteButton     = FindViewById <Button>(Resource.Id.DeleteButton);

                DeleteCheckBox.Text = GetText(Resource.String.Lbl_IWantToDelete1) + " " + UserDetails.Username + " " +
                                      GetText(Resource.String.Lbl_IWantToDelete2) + " " + AppSettings.ApplicationName +
                                      " " + GetText(Resource.String.Lbl_IWantToDelete3);

                Methods.SetColorEditText(PasswordEditText, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);

                MAdView = FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, null);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #8
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.AboutAppLayout);

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

                MAdView = FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, null);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #9
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.LocalWebViewLayout);

                var data = Intent.GetStringExtra("URL") ?? "Data not available";
                if (data != "Data not available" && !string.IsNullOrEmpty(data))
                {
                    Url = data;
                }
                var type = Intent.GetStringExtra("Type") ?? "Data not available";
                if (type != "Data not available" && !string.IsNullOrEmpty(type))
                {
                    TypeUrl = type;
                }

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

                MAdView = FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, null);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #10
0
        private void InitComponent()
        {
            try
            {
                MRecycler        = (RecyclerView)FindViewById(Resource.Id.recyler);
                EmptyStateLayout = FindViewById <ViewStub>(Resource.Id.viewStub);

                SwipeRefreshLayout = (SwipeRefreshLayout)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"));

                BtnFilter            = FindViewById <FloatingActionButton>(Resource.Id.floatingActionButtonView);
                BtnFilter.Visibility = ViewStates.Visible;

                MAdView = FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, MRecycler);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #11
0
        private void InitComponent(View view)
        {
            try
            {
                MRecycler        = (RecyclerView)view.FindViewById(Resource.Id.recyler);
                EmptyStateLayout = view.FindViewById <ViewStub>(Resource.Id.viewStub);

                ProgressBarLoader            = (ProgressBar)view.FindViewById(Resource.Id.sectionProgress);
                ProgressBarLoader.Visibility = ViewStates.Gone;

                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"));

                MAdView = view.FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, MRecycler);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #12
0
        private void InitComponent(View view)
        {
            try
            {
                IconAbout = (TextView)view.FindViewById(Resource.Id.About_icon);
                TxtAbout  = (AutoLinkTextView)view.FindViewById(Resource.Id.About_text);

                TextSanitizerAutoLink = new TextSanitizer(TxtAbout, Activity);

                IconGender = (TextView)view.FindViewById(Resource.Id.gender_icon);
                TxtGender  = (TextView)view.FindViewById(Resource.Id.gender_text);

                IconEmail = (TextView)view.FindViewById(Resource.Id.email_icon);
                TxtEmail  = (TextView)view.FindViewById(Resource.Id.email_text);

                IconCountry = (TextView)view.FindViewById(Resource.Id.Country_icon);
                TxtCountry  = (TextView)view.FindViewById(Resource.Id.Country_text);

                WebsiteLinearLayout = (LinearLayout)view.FindViewById(Resource.Id.websiteLinear);
                IconWebsite         = (TextView)view.FindViewById(Resource.Id.website_icon);
                TxtWebsite          = (TextView)view.FindViewById(Resource.Id.website_text);

                SocialLinksLinear            = (LinearLayout)view.FindViewById(Resource.Id.Social_Links_Linear);
                SocialLinksLinear.Visibility = ViewStates.Gone;

                SocialGoogle   = view.FindViewById <Button>(Resource.Id.social1);
                SocialFacebook = view.FindViewById <Button>(Resource.Id.social2);
                SocialTwitter  = view.FindViewById <Button>(Resource.Id.social3);
                SocialLinkedIn = view.FindViewById <Button>(Resource.Id.social4);
                WebsiteButton  = view.FindViewById <Button>(Resource.Id.website);

                SocialGoogle.Visibility   = ViewStates.Gone;
                SocialFacebook.Visibility = ViewStates.Gone;
                SocialTwitter.Visibility  = ViewStates.Gone;
                SocialLinkedIn.Visibility = ViewStates.Gone;
                WebsiteButton.Visibility  = ViewStates.Gone;

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconAbout, IonIconsFonts.IosInformationOutline);
                IconAbout.SetTextColor(Color.ParseColor(AppSettings.MainColor));

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconGender, IonIconsFonts.Male);
                IconGender.SetTextColor(Color.ParseColor("#c51162"));

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconEmail, IonIconsFonts.Email);
                IconEmail.SetTextColor(Color.ParseColor("#dd2c00"));

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconCountry, IonIconsFonts.Earth);
                IconCountry.SetTextColor(Color.ParseColor("#388E3C"));

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconWebsite, IonIconsFonts.Earth);
                IconWebsite.SetTextColor(Color.ParseColor("#0073E5"));

                if (!AppSettings.ShowEmailAccount)
                {
                    IconEmail.Visibility = ViewStates.Gone;
                    TxtEmail.Visibility  = ViewStates.Gone;
                }

                MAdView = view.FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, null);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #13
0
ファイル: ChAboutFragment.cs プロジェクト: divitiae/playtube
        private void InitComponent(View view)
        {
            try
            {
                TxtAboutChannel = (AutoLinkTextView)view.FindViewById(Resource.Id.AboutChannal_text);


                TxtGender = (TextView)view.FindViewById(Resource.Id.gender_text);


                TxtEmail = (TextView)view.FindViewById(Resource.Id.email_text);

                BtnFacebook = (CircleButton)view.FindViewById(Resource.Id.facebook_button);
                BtnTwitter  = (CircleButton)view.FindViewById(Resource.Id.twitter_button);
                BtnGoogle   = (CircleButton)view.FindViewById(Resource.Id.google_button);


                LinearBlock2 = (LinearLayout)view.FindViewById(Resource.Id.BlockLiner);



                LinearMonetization1 = (LinearLayout)view.FindViewById(Resource.Id.Monetization_Linear);
                LinearMonetization2 = (LinearLayout)view.FindViewById(Resource.Id.MonetizationLiner);

                IconMonetization = (TextView)view.FindViewById(Resource.Id.Monetization_icon);
                TxtMonetization  = (TextView)view.FindViewById(Resource.Id.Monetization_text);

                //FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconAboutChannel, IonIconsFonts.IosInformationOutline);
                //IconAboutChannel.SetTextColor(Color.ParseColor(AppSettings.MainColor));

                //FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconGender, IonIconsFonts.Male);
                //IconGender.SetTextColor(Color.ParseColor("#c51162"));

                //FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconEmail, IonIconsFonts.Email);
                //IconEmail.SetTextColor(Color.ParseColor("#dd2c00"));

                BtnFacebook.Tag = "facebook";
                BtnTwitter.Tag  = "twitter";
                BtnGoogle.Tag   = "google";

                if (IdChannel == UserDetails.UserId)
                {
                    LinearBlock2.Visibility = ViewStates.Gone;

                    LinearMonetization1.Visibility = ViewStates.Visible;
                    LinearMonetization2.Visibility = ViewStates.Visible;

                    FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconMonetization, IonIconsFonts.SocialUsd);
                }
                else
                {
                    LinearMonetization1.Visibility = ViewStates.Gone;
                    LinearMonetization2.Visibility = ViewStates.Gone;


                    LinearBlock2.Visibility = ViewStates.Visible;
                }

                if (!AppSettings.ShowEmailAccount)
                {
                    TxtEmail.Visibility = ViewStates.Gone;
                }

                MAdView = view.FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, null);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #14
0
        private void InitComponent()
        {
            try
            {
                ImageUser   = FindViewById <ImageView>(Resource.Id.imageUser);
                NameUser    = FindViewById <TextView>(Resource.Id.nameUser);
                TxtSubTitle = FindViewById <TextView>(Resource.Id.subTitle);

                CircleCommentsPoint = FindViewById <TextView>(Resource.Id.circleCommentsPoint);
                IconCommentsPoint   = FindViewById <TextView>(Resource.Id.IconCommentsPoint);
                TextCommentsPoint   = FindViewById <TextView>(Resource.Id.TextCommentsPoint);

                CircleCreatePostPoint = FindViewById <TextView>(Resource.Id.circleCreatePostPoint);
                IconCreatePostPoint   = FindViewById <TextView>(Resource.Id.IconCreatePostPoint);
                TextCreatePostPoint   = FindViewById <TextView>(Resource.Id.TextCreatePostPoint);

                ReactingPointLayouts = FindViewById <RelativeLayout>(Resource.Id.ReactingPointLayouts);
                CircleReactingPoint  = FindViewById <TextView>(Resource.Id.circleReactingPoint);
                IconReactingPoint    = FindViewById <TextView>(Resource.Id.IconReactingPoint);
                TextReactingPoint    = FindViewById <TextView>(Resource.Id.TextReactingPoint);

                CircleCreateBlogPoint = FindViewById <TextView>(Resource.Id.circleCreateBlogPoint);
                IconCreateBlogPoint   = FindViewById <TextView>(Resource.Id.IconCreateBlogPoint);
                TextCreateBlogPoint   = FindViewById <TextView>(Resource.Id.TextCreateBlogPoint);

                AddWalletLayouts = FindViewById <RelativeLayout>(Resource.Id.AddWalletLayouts);
                TextAddWallet    = FindViewById <TextView>(Resource.Id.TextAddWallet);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, CircleCommentsPoint, IonIconsFonts.Record);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, CircleCreatePostPoint, IonIconsFonts.Record);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, CircleReactingPoint, IonIconsFonts.Record);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, CircleCreateBlogPoint, IonIconsFonts.Record);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeSolid, IconCommentsPoint, FontAwesomeIcon.CommentAlt);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, IconCreatePostPoint, FontAwesomeIcon.Newspaper);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, IconCreateBlogPoint, FontAwesomeIcon.Blog);

                CircleCommentsPoint.SetTextColor(Color.ParseColor("#4caf50"));
                CircleCreatePostPoint.SetTextColor(Color.ParseColor("#2196F3"));
                CircleCreateBlogPoint.SetTextColor(Color.ParseColor("#7a7a7a"));

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

                var myProfile = ListUtils.MyProfileList.FirstOrDefault();
                if (myProfile != null)
                {
                    GlideImageLoader.LoadImage(this, myProfile.Avatar, ImageUser, ImageStyle.CircleCrop, ImagePlaceholders.Drawable);
                    NameUser.Text = WoWonderTools.GetNameFinal(myProfile);

                    TxtSubTitle.Text = GetString(Resource.String.Btn_Points) + " : " + myProfile.Points;
                }

                var setting = ListUtils.SettingsSiteList;
                if (setting != null)
                {
                    TextCommentsPoint.Text   = GetString(Resource.String.Lbl_Earn) + " " + setting.CommentsPoint + " " + GetString(Resource.String.Lbl_ByCommentingAnyPost);
                    TextCreatePostPoint.Text = GetString(Resource.String.Lbl_Earn) + " " + setting.CreatepostPoint + " " + GetString(Resource.String.Lbl_ByCreatingNewPost);
                    TextCreateBlogPoint.Text = GetString(Resource.String.Lbl_Earn) + " " + setting.CreateblogPoint + " " + GetString(Resource.String.Lbl_ByCreatingNewBlog);

                    switch (AppSettings.PostButton)
                    {
                    case PostButtonSystem.Reaction:
                        FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, IconReactingPoint, FontAwesomeIcon.Smile);
                        CircleReactingPoint.SetTextColor(Color.ParseColor("#FF9800"));
                        TextReactingPoint.Text = GetString(Resource.String.Lbl_Earn) + " " + setting.ReactionPoint + " " + GetString(Resource.String.Lbl_ByReactingAnyPost);
                        break;

                    case PostButtonSystem.Wonder:
                        FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeSolid, IconReactingPoint, FontAwesomeIcon.Exclamation);
                        CircleReactingPoint.SetTextColor(Color.ParseColor("#b71c1c"));

                        TextReactingPoint.Text = GetString(Resource.String.Lbl_Earn) + " " + setting.WondersPoint + " " + GetString(Resource.String.Lbl_ByWonderingAnyPost);
                        break;

                    case PostButtonSystem.DisLike:
                        FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeSolid, IconReactingPoint, FontAwesomeIcon.ThumbsDown);
                        CircleReactingPoint.SetTextColor(Color.ParseColor("#0D47A1"));

                        TextReactingPoint.Text = GetString(Resource.String.Lbl_Earn) + " " + setting.DislikesPoint + " " + GetString(Resource.String.Lbl_ByDislikingAnyPost);
                        break;

                    case PostButtonSystem.Like:
                        ReactingPointLayouts.Visibility = ViewStates.Gone;
                        break;
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #15
0
ファイル: BasicFragment.cs プロジェクト: MriDx/loversfly
        private void InitComponent(View view)
        {
            try
            {
                MainLayout        = view.FindViewById <RelativeLayout>(Resource.Id.mainLayout);
                IconLocation      = view.FindViewById <TextView>(Resource.Id.IconLocation);
                LocationTextView  = view.FindViewById <TextView>(Resource.Id.LocationTextView);
                LocationPlace     = view.FindViewById <TextView>(Resource.Id.LocationPlace);
                LocationMoreIcon  = view.FindViewById <TextView>(Resource.Id.LocationMoreIcon);
                GenderTextView    = view.FindViewById <TextView>(Resource.Id.GenderTextView);
                IconFire          = view.FindViewById <TextView>(Resource.Id.IconFire);
                IconAge           = view.FindViewById <TextView>(Resource.Id.IconAge);
                AgeTextView       = view.FindViewById <TextView>(Resource.Id.AgeTextView);
                AgeNumberTextView = view.FindViewById <TextView>(Resource.Id.Agenumber);
                OnlineTextView    = view.FindViewById <TextView>(Resource.Id.OnlineTextView);
                IconOnline        = view.FindViewById <TextView>(Resource.Id.Icononline);
                ResetTextView     = view.FindViewById <TextView>(Resource.Id.Resetbutton);
                LocationLayout    = view.FindViewById <RelativeLayout>(Resource.Id.LayoutLocation);
                ButtonMan         = view.FindViewById <Button>(Resource.Id.ManButton);
                ButtonGirls       = view.FindViewById <Button>(Resource.Id.GirlsButton);
                ButtonBoth        = view.FindViewById <Button>(Resource.Id.BothButton);
                ButtonApply       = view.FindViewById <Button>(Resource.Id.ApplyButton);
                AgeSeekBar        = view.FindViewById <RangeSliderControl>(Resource.Id.seekbar);
                OnlineSwitch      = view.FindViewById <Switch>(Resource.Id.togglebutton);
                IconDistance      = view.FindViewById <TextView>(Resource.Id.IconDistance);
                TxtDistanceCount  = view.FindViewById <TextView>(Resource.Id.Distancenumber);
                DistanceBar       = view.FindViewById <SeekBar>(Resource.Id.distanceSeeker);

                ResetTextView.Visibility = ViewStates.Gone;
                ButtonApply.Visibility   = ViewStates.Gone;
                MainLayout.Visibility    = ViewStates.Gone;

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconLocation, IonIconsFonts.IosLocationOutline);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, LocationMoreIcon, IonIconsFonts.ChevronRight);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconFire, IonIconsFonts.IosPersonOutline);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconAge, IonIconsFonts.Calendar);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconOnline, IonIconsFonts.Ionic);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconDistance, FontAwesomeIcon.StreetView);

                FontUtils.SetFont(LocationTextView, Fonts.SfRegular);
                FontUtils.SetFont(LocationPlace, Fonts.SfRegular);
                FontUtils.SetFont(GenderTextView, Fonts.SfRegular);
                FontUtils.SetFont(AgeTextView, Fonts.SfRegular);
                FontUtils.SetFont(OnlineTextView, Fonts.SfRegular);
                FontUtils.SetFont(TxtDistanceCount, Fonts.SfRegular);

                DistanceBar.Max = 50;
                DistanceBar.SetOnSeekBarChangeListener(this);

                AgeSeekBar.SetSelectedMinValue(18);
                AgeSeekBar.SetSelectedMaxValue(75);

                OnlineSwitch.Checked = false;

                ButtonGirls.SetBackgroundResource(Resource.Drawable.follow_button_profile_friends);
                ButtonGirls.SetTextColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#ffffff") : Color.ParseColor("#444444"));

                ButtonBoth.SetBackgroundResource(Resource.Drawable.follow_button_profile_friends_pressed);
                ButtonBoth.SetTextColor(Color.ParseColor("#ffffff"));

                ButtonMan.SetBackgroundResource(Resource.Drawable.follow_button_profile_friends);
                ButtonMan.SetTextColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#ffffff") : Color.ParseColor("#444444"));

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

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

                View mContentView = Window.DecorView;
                var  uiOptions    = (int)mContentView.SystemUiVisibility;
                var  newUiOptions = uiOptions;

                newUiOptions |= (int)SystemUiFlags.LayoutStable;
                newUiOptions |= (int)SystemUiFlags.LayoutFullscreen;
                mContentView.SystemUiVisibility = (StatusBarVisibility)newUiOptions;

                Window.AddFlags(WindowManagerFlags.Fullscreen);

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

                NamePage = Intent.GetStringExtra("NamePage") ?? string.Empty;

                SUserId = Intent.GetStringExtra("UserId") ?? string.Empty;

                var userObject = Intent.GetStringExtra("UserObject");
                if (!string.IsNullOrEmpty(userObject))
                {
                    try
                    {
                        if (NamePage == "Chat")
                        {
                            if (AppSettings.LastChatSystem == SystemApiGetLastChat.New)
                            {
                                UserData = JsonConvert.DeserializeObject <UserDataObject>(userObject);
                            }
                            else if (AppSettings.LastChatSystem == SystemApiGetLastChat.Old)
                            {
                                UserData = JsonConvert.DeserializeObject <GetUsersListObject.User>(userObject);
                            }
                            else
                            {
                                UserData = JsonConvert.DeserializeObject <UserDataObject>(userObject);
                            }
                        }
                        else
                        {
                            UserData = JsonConvert.DeserializeObject <UserDataObject>(userObject);
                        }
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine(e);
                    }
                }

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

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

                //Get Data User
                if (UserData != null)
                {
                    LoadDataUser(UserData);
                }

                GetFiles();

                StartApiService();

                AdsGoogle.Ad_Interstitial(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #17
0
        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);

                NameIcon     = FindViewById <TextView>(Resource.Id.IconName);
                EdtFirstName = FindViewById <EditText>(Resource.Id.FirstNameEditText);
                EdtLastName  = FindViewById <EditText>(Resource.Id.LastNameEditText);

                GenderIcon = FindViewById <TextView>(Resource.Id.IconGender);
                EdtGender  = FindViewById <EditText>(Resource.Id.GenderEditText);

                BirthdayIcon = FindViewById <TextView>(Resource.Id.IconBirthday);
                EdtBirthday  = FindViewById <EditText>(Resource.Id.BirthdayEditText);

                LocationIcon = FindViewById <TextView>(Resource.Id.IconLocation);
                EdtLocation  = FindViewById <EditText>(Resource.Id.LocationEditText);

                LanguageIcon = FindViewById <TextView>(Resource.Id.IconLanguage);
                EdtLanguage  = FindViewById <EditText>(Resource.Id.LanguageEditText);

                RelationshipIcon = FindViewById <TextView>(Resource.Id.IconRelationship);
                EdtRelationship  = FindViewById <EditText>(Resource.Id.RelationshipEditText);

                WorkStatusIcon = FindViewById <TextView>(Resource.Id.IconWorkStatus);
                EdtWorkStatus  = FindViewById <EditText>(Resource.Id.WorkStatusEditText);

                EducationIcon = FindViewById <TextView>(Resource.Id.IconEducation);
                EdtEducation  = FindViewById <EditText>(Resource.Id.EducationEditText);

                BtnSave = FindViewById <Button>(Resource.Id.ApplyButton);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, BackIcon, IonIconsFonts.ChevronLeft);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, NameIcon, FontAwesomeIcon.User);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, GenderIcon, FontAwesomeIcon.Transgender);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, BirthdayIcon, FontAwesomeIcon.BirthdayCake);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, LocationIcon, FontAwesomeIcon.MapMarkerAlt);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, LanguageIcon, FontAwesomeIcon.Language);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, RelationshipIcon, FontAwesomeIcon.Heart);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, WorkStatusIcon, FontAwesomeIcon.Briefcase);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, EducationIcon, FontAwesomeIcon.GraduationCap);

                Methods.SetColorEditText(EdtFirstName, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtLastName, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtGender, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtBirthday, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtLocation, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtLanguage, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtRelationship, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtWorkStatus, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtEducation, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);

                Methods.SetFocusable(EdtGender);
                Methods.SetFocusable(EdtBirthday);
                Methods.SetFocusable(EdtLanguage);
                Methods.SetFocusable(EdtRelationship);
                Methods.SetFocusable(EdtWorkStatus);
                Methods.SetFocusable(EdtEducation);

                MAdView = FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, null);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #18
0
        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);

                MusicIcon = FindViewById <TextView>(Resource.Id.IconMusic);
                EdtMusic  = FindViewById <EditText>(Resource.Id.MusicEditText);

                DishIcon = FindViewById <TextView>(Resource.Id.IconDish);
                EdtDish  = FindViewById <EditText>(Resource.Id.DishEditText);

                SongIcon = FindViewById <TextView>(Resource.Id.IconSong);
                EdtSong  = FindViewById <EditText>(Resource.Id.SongEditText);

                HobbyIcon = FindViewById <TextView>(Resource.Id.IconHobby);
                EdtHobby  = FindViewById <EditText>(Resource.Id.HobbyEditText);

                CityIcon = FindViewById <TextView>(Resource.Id.IconCity);
                EdtCity  = FindViewById <EditText>(Resource.Id.CityEditText);

                SportIcon = FindViewById <TextView>(Resource.Id.IconSport);
                EdtSport  = FindViewById <EditText>(Resource.Id.SportEditText);

                BookIcon = FindViewById <TextView>(Resource.Id.IconBook);
                EdtBook  = FindViewById <EditText>(Resource.Id.BookEditText);

                MovieIcon = FindViewById <TextView>(Resource.Id.IconMovie);
                EdtMovie  = FindViewById <EditText>(Resource.Id.MovieEditText);

                ColorIcon = FindViewById <TextView>(Resource.Id.IconColor);
                EdtColor  = FindViewById <EditText>(Resource.Id.ColorEditText);

                TvShowIcon = FindViewById <TextView>(Resource.Id.IconTvShow);
                EdtTvShow  = FindViewById <EditText>(Resource.Id.TvShowEditText);

                BtnSave = FindViewById <Button>(Resource.Id.ApplyButton);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, BackIcon, IonIconsFonts.ChevronLeft);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, MusicIcon, FontAwesomeIcon.Music);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, DishIcon, FontAwesomeIcon.Fish);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeBrands, SongIcon, FontAwesomeIcon.Mandalorian);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, HobbyIcon, FontAwesomeIcon.Smile);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, CityIcon, FontAwesomeIcon.City);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, SportIcon, FontAwesomeIcon.FootballBall);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, BookIcon, FontAwesomeIcon.Book);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, MovieIcon, FontAwesomeIcon.Film);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, ColorIcon, FontAwesomeIcon.Palette);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, TvShowIcon, FontAwesomeIcon.Tv);

                Methods.SetColorEditText(EdtMusic, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtDish, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtSong, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtHobby, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtCity, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtSport, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtBook, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtMovie, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtColor, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                Methods.SetColorEditText(EdtTvShow, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);

                MAdView = FindViewById <AdView>(Resource.Id.adView);
                AdsGoogle.InitAdView(MAdView, null);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }