private void InitComponent(View view)
        {
            try
            {
                ProgressBar            = view.FindViewById <ProgressBar>(Resource.Id.progress);
                ProgressBar.Visibility = ViewStates.Visible;

                PlaylistViewStub       = (ViewStub)view.FindViewById(Resource.Id.viewStubPlaylist);
                PublicPlaylistViewStub = (ViewStub)view.FindViewById(Resource.Id.viewStubPublicePlaylist);
                EmptyStateLayout       = (ViewStub)view.FindViewById(Resource.Id.viewStub);

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new DefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new Helpers.PullSwipeStyles.DefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);

                BtnAdd            = (FloatingActionButton)view.FindViewById(Resource.Id.floatingAdd);
                BtnAdd.Visibility = UserDetails.IsLogin ? ViewStates.Visible : ViewStates.Gone;
                BtnAdd.Click     += BtnAddOnClick;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Exemple #2
0
        private void InitComponent(View view)
        {
            try
            {
                MRecycler        = (RecyclerView)view.FindViewById(Resource.Id.recyler);
                EmptyStateLayout = view.FindViewById <ViewStub>(Resource.Id.viewStub);

                LoadingLinear            = (LinearLayout)view.FindViewById(Resource.Id.Loading_LinearLayout);
                LoadingLinear.Visibility = ViewStates.Visible;

                ViewPagerView = view.FindViewById <ViewPager>(Resource.Id.viewpager2);

                MainAppBarLayout = view.FindViewById <AppBarLayout>(Resource.Id.mainAppBarLayout);
                MainAppBarLayout.SetExpanded(false);

                CollapsingToolbarLayout = (CollapsingToolbarLayout)view.FindViewById(Resource.Id.collapsingToolbar);
                //CollapsingToolbarLayout.Title = AppSettings.ApplicationName;
                CollapsingToolbarLayout.Title = "Discover";

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new Helpers.PullSwipeStyles.DefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new Helpers.PullSwipeStyles.DefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);

                MainAlert            = (RelativeLayout)view.FindViewById(Resource.Id.mainAlert);
                MainAlert.Visibility = !UserDetails.IsLogin ? ViewStates.Visible : ViewStates.Gone;
                MainAlert.Click     += MainAlertOnClick;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Exemple #3
0
        private void InitComponent(View view)
        {
            try
            {
                EmptyStateLayout = view.FindViewById <ViewStub>(Resource.Id.viewStub);

                ProgressBar            = view.FindViewById <ProgressBar>(Resource.Id.progress);
                ProgressBar.Visibility = ViewStates.Visible;

                BrowseViewStub         = (ViewStub)view.FindViewById(Resource.Id.viewStubBrowse);
                NewReleasesViewStub    = (ViewStub)view.FindViewById(Resource.Id.viewStubNewReleases);
                RecentlyPlayedViewStub = (ViewStub)view.FindViewById(Resource.Id.viewStubRecentlyPlayed);
                PopularViewStub        = (ViewStub)view.FindViewById(Resource.Id.viewStubPopular);
                ArtistsViewStub        = (ViewStub)view.FindViewById(Resource.Id.viewStubArtists);

                ViewPagerView            = view.FindViewById <ViewPager>(Resource.Id.viewpager2);
                ViewPagerCircleIndicator = (CircleIndicator)view.FindViewById(Resource.Id.indicator);

                ToolBarTitle      = (TextView)view.FindViewById(Resource.Id.toolbartitle);
                ToolBarTitle.Text = AppSettings.ApplicationName;

                NotificationIcon = (TextView)view.FindViewById(Resource.Id.notificationIcon);
                ProIcon          = (TextView)view.FindViewById(Resource.Id.proIcon);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, NotificationIcon, IonIconsFonts.AndroidNotifications);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, ProIcon, FontAwesomeIcon.Rocket);

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new DefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new Helpers.PullSwipeStyles.DefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);

                NotificationIcon.Click += NotificationIconOnClick;
                ProIcon.Click          += ProIconOnClick;

                if (!AppSettings.ShowGoPro)
                {
                    ProIcon.Visibility = ViewStates.Gone;
                }

                if (!UserDetails.IsLogin)
                {
                    ProIcon.Visibility = ViewStates.Gone;
                }

                NotificationIcon.Visibility = UserDetails.IsLogin ? ViewStates.Visible : ViewStates.Gone;

                MainAlert            = (RelativeLayout)view.FindViewById(Resource.Id.mainAlert);
                MainAlert.Visibility = !UserDetails.IsLogin ? ViewStates.Visible : ViewStates.Gone;
                MainAlert.Click     += MainAlertOnClick;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Exemple #4
0
        private void InitComponent(View view)
        {
            try
            {
                MRecycler        = (RecyclerView)view.FindViewById(Resource.Id.recyler);
                EmptyStateLayout = view.FindViewById <ViewStub>(Resource.Id.viewStub);

                LoadingLinear            = (LinearLayout)view.FindViewById(Resource.Id.Loading_LinearLayout);
                LoadingLinear.Visibility = ViewStates.Visible;

                ViewPagerView = view.FindViewById <ViewPager>(Resource.Id.viewpager2);

                MainAppBarLayout = view.FindViewById <AppBarLayout>(Resource.Id.mainAppBarLayout);
                MainAppBarLayout.SetExpanded(false);

                CollapsingToolbarLayout = (CollapsingToolbarLayout)view.FindViewById(Resource.Id.collapsingToolbar);
                ToolbarLogo             = view.FindViewById <ImageView>(Resource.Id.ToolbarLogo);
                ToolbarLogoLinearLayout = view.FindViewById <LinearLayout>(Resource.Id.ToolbarLogoLinearLayout);

                if (AppSettings.ShowAppLogoInToolbar)
                {
                    CollapsingToolbarLayout.SetTitle(" ");
                    MainAppBarLayout.AddOnOffsetChangedListener(this);

                    ToolbarLogoLinearLayout.BringToFront();
                    ViewCompat.SetTranslationZ(ToolbarLogoLinearLayout, 100);
                    ((View)ToolbarLogoLinearLayout.Parent).RequestLayout();
                }
                else
                {
                    CollapsingToolbarLayout.Title = AppSettings.ApplicationName;
                }

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new Helpers.PullSwipeStyles.DefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new Helpers.PullSwipeStyles.DefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);

                MainAlert            = (RelativeLayout)view.FindViewById(Resource.Id.mainAlert);
                MainAlert.Visibility = !UserDetails.IsLogin ? ViewStates.Visible : ViewStates.Gone;
                MainAlert.Click     += MainAlertOnClick;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent(View view)
        {
            try
            {
                AppBarLayout = (AppBarLayout)view.FindViewById(Resource.Id.appBarLayout);
                AppBarLayout.SetExpanded(false);

                TxtMoreSuggested        = (TextView)view.FindViewById(Resource.Id.iv_more_folowers);
                TxtMoreSuggested.Click += TxtMoreSuggestedOnClick;

                SuggestionsRecylerView = (RecyclerView)view.FindViewById(Resource.Id.Recyler);
                ExploreRecylerView     = (RecyclerView)view.FindViewById(Resource.Id.featuredRecyler);
                ProgressBarLoader      = (ProgressBar)view.FindViewById(Resource.Id.sectionProgress);
                EmptyStateLayout       = view.FindViewById <ViewStub>(Resource.Id.viewStub);

                MainLayoutSugettion            = (LinearLayout)view.FindViewById(Resource.Id.layoutSugettionSection);
                MainLayoutSugettion.Visibility = ViewStates.Invisible;

                SearchViewBoxIcon      = (TextView)view.FindViewById(Resource.Id.searchviewboxIcon);
                SearchViewBoxText      = (TextView)view.FindViewById(Resource.Id.friends_head_txt);
                SearchViewLinearLayout = (LinearLayout)view.FindViewById(Resource.Id.searchviewLinearLayout);


                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new PixelDefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new PixelDefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);

                if (AppSettings.SetTabDarkTheme)
                {
                    MainLayoutSugettion.SetBackgroundResource(Resource.Drawable.center_content_profile_scroll_over_dark);
                    SearchViewLinearLayout.SetBackgroundResource(Resource.Drawable.search_round_corners_dark);
                    SearchViewBoxIcon.SetTextColor(AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                    SearchViewBoxText.SetTextColor(AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                }

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, SearchViewBoxIcon, IonIconsFonts.IosSearch);
                SearchViewLinearLayout.Click += SearchViewLinearLayoutOnClick;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent(View view)
        {
            try
            {
                MRecycler         = view.FindViewById <PRecyclerView>(Resource.Id.HashtagRecyler);
                EmptyStateLayout  = view.FindViewById <ViewStub>(Resource.Id.viewStub);
                ProgressBarLoader = view.FindViewById <ProgressBar>(Resource.Id.sectionProgress);

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new PixelDefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new PixelDefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Exemple #7
0
        private void InitComponent(View view)
        {
            try
            {
                FilterButton       = view.FindViewById <ImageView>(Resource.Id.Filterbutton);
                NearByRecyclerView = (RecyclerView)view.FindViewById(Resource.Id.Recylerusers);
                ProgressBarLoader  = (ProgressBar)view.FindViewById(Resource.Id.sectionProgress);
                EmptyStateLayout   = view.FindViewById <ViewStub>(Resource.Id.viewStub);
                ToolbarTitle       = view.FindViewById <TextView>(Resource.Id.toolbartitle);
                ProRecyclerView    = (RecyclerView)view.FindViewById(Resource.Id.proRecyler);

                HotOrNotLinear  = (LinearLayout)view.FindViewById(Resource.Id.HotORNotLinear);
                IconHotOrNot    = (TextView)view.FindViewById(Resource.Id.iconHotORNot);
                RecylerHotOrNot = (RecyclerView)view.FindViewById(Resource.Id.recylerHotOrNot);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconHotOrNot, IonIconsFonts.IosFlameOutline);

                ToolbarTitle.Text = AppSettings.ApplicationName;

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new Helpers.PullSwipeStyles.DefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new Helpers.PullSwipeStyles.DefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);

                AppBarLayout = (AppBarLayout)view.FindViewById(Resource.Id.appBarLayout);
                AppBarLayout.SetExpanded(false);

                ProgressBarLoader.Visibility  = ViewStates.Visible;
                NearByRecyclerView.Visibility = ViewStates.Gone;
                HotOrNotLinear.Visibility     = ViewStates.Gone;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent(View view)
        {
            try
            {
                AppBarLayout = view.FindViewById <AppBarLayout>(Resource.Id.appBarLayout);
                AppBarLayout.SetExpanded(false);

                StoryRecycler = view.FindViewById <RecyclerView>(Resource.Id.StoryRecyler);

                TxtAppName      = view.FindViewById <TextView>(Resource.Id.Appname);
                TxtAppName.Text = AppSettings.ApplicationName;
                TxtAppName.SetTextColor(AppSettings.SetTabDarkTheme ? Color.White : Color.Black);

                ImageChat        = view.FindViewById <ImageView>(Resource.Id.chatbutton);
                ImageChat.Click += ImageChatOnClick;

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new PixelDefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new PixelDefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);
                SwipeRefreshLayout.OnFinishFreshAndLoad();//check this

                RecyclerFeed = view.FindViewById <PRecyclerView>(Resource.Id.RecylerFeed);

                ProgressBar            = view.FindViewById <ProgressBar>(Resource.Id.sectionProgress);
                ProgressBar.Visibility = ViewStates.Visible;

                EmptyStateLayout            = view.FindViewById <ViewStub>(Resource.Id.viewStub);
                EmptyStateLayout.Visibility = ViewStates.Gone;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent(View view)
        {
            try
            {
                ProgressBar            = view.FindViewById <ProgressBar>(Resource.Id.progress);
                ProgressBar.Visibility = ViewStates.Visible;

                PublicPlaylistViewStub = (ViewStub)view.FindViewById(Resource.Id.viewStubPublicePlaylist);
                EmptyStateLayout       = (ViewStub)view.FindViewById(Resource.Id.viewStub);

                MyPlaylistLinear            = view.FindViewById <LinearLayout>(Resource.Id.myPlaylistLinear);
                MyPlaylistLinear.Click     += MyPlaylistLinearOnClick;
                MyPlaylistLinear.Visibility = ViewStates.Gone;

                ViewPagerView            = view.FindViewById <ViewPager>(Resource.Id.viewpager3);
                ViewPagerCircleIndicator = (CircleIndicator)view.FindViewById(Resource.Id.indicator1);
                ViewPagerView.PageMargin = 6;
                ViewPagerView.SetClipChildren(false);
                ViewPagerView.SetPageTransformer(true, new CarouselEffectTransformer2(Activity));

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new DefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new Helpers.PullSwipeStyles.DefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);

                BtnAdd            = (FloatingActionButton)view.FindViewById(Resource.Id.floatingAdd);
                BtnAdd.Visibility = UserDetails.IsLogin ? ViewStates.Visible : ViewStates.Gone;
                BtnAdd.Click     += BtnAddOnClick;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent(View view)
        {
            try
            {
                CollapsingToolbar       = (CollapsingToolbarLayout)view.FindViewById(Resource.Id.collapsingToolbar);
                CollapsingToolbar.Title = "";

                AppBarLayout = view.FindViewById <AppBarLayout>(Resource.Id.appBarLayout);
                AppBarLayout.SetExpanded(true);

                ImageAvatar = (ImageView)view.FindViewById(Resource.Id.imageAvatar);
                ImageCover  = (ImageView)view.FindViewById(Resource.Id.cover_image);


                BtnFollow  = (CircleButton)view.FindViewById(Resource.Id.AddUserbutton);
                BtnMessage = (CircleButton)view.FindViewById(Resource.Id.message_button);
                BtnMore    = (CircleButton)view.FindViewById(Resource.Id.morebutton);

                BtnFollow.Click  += BtnAddUserOnClick;
                BtnMessage.Click += BtnMessageOnClick;
                BtnMore.Click    += BtnMoreOnClick;

                TxtUserName  = (TextView)view.FindViewById(Resource.Id.username_profile);
                IconVerified = (TextView)view.FindViewById(Resource.Id.verified);
                IconPro      = (TextView)view.FindViewById(Resource.Id.pro);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconVerified, IonIconsFonts.CheckmarkCircled);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconPro, FontAwesomeIcon.Rocket);

                IconVerified.Visibility = ViewStates.Gone;
                IconPro.Visibility      = ViewStates.Gone;

                LayoutFollowers = (LinearLayout)view.FindViewById(Resource.Id.followersLayout);
                //TxtFollowers = (TextView)view.FindViewById(Resource.Id.txtFollowers);
                TxtCountFollowers      = (TextView)view.FindViewById(Resource.Id.CountFollowers);
                LayoutFollowers.Click += LayoutFollowersOnClick;

                LayoutFollowing = (LinearLayout)view.FindViewById(Resource.Id.followingLayout);
                //TxtFollowing = (TextView)view.FindViewById(Resource.Id.txtFollowing);
                TxtCountFollowing      = (TextView)view.FindViewById(Resource.Id.CountFollowing);
                LayoutFollowing.Click += LayoutFollowingOnClick;

                //LayoutTracks = (LinearLayout)view.FindViewById(Resource.Id.tracksLayout);
                //TxtTracks = (TextView)view.FindViewById(Resource.Id.txtTracks);
                TxtCountTracks = (TextView)view.FindViewById(Resource.Id.CountTracks);

                LoadingLayout            = (LinearLayout)view.FindViewById(Resource.Id.Loading_LinearLayout);
                LoadingLayout.Visibility = ViewStates.Visible;

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new DefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new Helpers.PullSwipeStyles.DefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);

                EmptyStateLayout    = (ViewStub)view.FindViewById(Resource.Id.viewStub);
                LatestSongsViewStub = (ViewStub)view.FindViewById(Resource.Id.viewStubLatestSongs);
                TopSongsViewStub    = (ViewStub)view.FindViewById(Resource.Id.viewStubTopSongs);
                AlbumsViewStub      = (ViewStub)view.FindViewById(Resource.Id.viewStubAlbums);
                StoreViewStub       = (ViewStub)view.FindViewById(Resource.Id.viewStubStore);
                ActivitiesViewStub  = (ViewStub)view.FindViewById(Resource.Id.viewStubActivities);

                TxtAbout = (AutoLinkTextView)view.FindViewById(Resource.Id.AboutTextview);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Exemple #11
0
        private void InitComponent(View view)
        {
            try
            {
                CollapsingToolbar       = (CollapsingToolbarLayout)view.FindViewById(Resource.Id.collapsingToolbar);
                CollapsingToolbar.Title = "";

                AppBarLayout = view.FindViewById <AppBarLayout>(Resource.Id.appBarLayout);
                AppBarLayout.SetExpanded(true);
                AppBarLayout.AddOnOffsetChangedListener(this);

                LoadingLayout            = (LinearLayout)view.FindViewById(Resource.Id.Loading_LinearLayout);
                LoadingLayout.Visibility = ViewStates.Visible;

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new DefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new Helpers.PullSwipeStyles.DefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);

                ButtonMore        = (ImageButton)view.FindViewById(Resource.Id.more);
                ButtonMore.Click += ButtonMoreOnClick;

                IconInfo        = (TextView)view.FindViewById(Resource.Id.info);
                IconInfo.Click += IconInfoOnClick;

                ImageAvatar = (ImageView)view.FindViewById(Resource.Id.imageAvatar);
                ImageCover  = (ImageView)view.FindViewById(Resource.Id.imageCover);

                TxtFullName = (TextView)view.FindViewById(Resource.Id.fullNameTextView);
                TxtUserName = (TextView)view.FindViewById(Resource.Id.userNameTextView);

                TxtFollowers             = (TextView)view.FindViewById(Resource.Id.FollowersTextView);
                TxtCountFollowers        = (TextView)view.FindViewById(Resource.Id.countFollowersTextView);
                TxtFollowers.Click      += TxtFollowersOnClick;
                TxtCountFollowers.Click += TxtFollowersOnClick;

                TxtFollowing             = (TextView)view.FindViewById(Resource.Id.FollowingTextView);
                TxtCountFollowing        = (TextView)view.FindViewById(Resource.Id.countFollowingTextView);
                TxtFollowing.Click      += TxtFollowingOnClick;
                TxtCountFollowing.Click += TxtFollowingOnClick;

                IconCamera   = (TextView)view.FindViewById(Resource.Id.iconCamera);
                IconVerified = (TextView)view.FindViewById(Resource.Id.verified);
                IconPro      = (TextView)view.FindViewById(Resource.Id.pro);

                EmptyStateLayout    = (ViewStub)view.FindViewById(Resource.Id.viewStub);
                LatestSongsViewStub = (ViewStub)view.FindViewById(Resource.Id.viewStubLatestSongs);
                TopSongsViewStub    = (ViewStub)view.FindViewById(Resource.Id.viewStubTopSongs);
                AlbumsViewStub      = (ViewStub)view.FindViewById(Resource.Id.viewStubAlbums);
                StoreViewStub       = (ViewStub)view.FindViewById(Resource.Id.viewStubStore);
                ActivitiesViewStub  = (ViewStub)view.FindViewById(Resource.Id.viewStubActivities);

                TxtAbout = (AutoLinkTextView)view.FindViewById(Resource.Id.AboutTextview);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconCamera, IonIconsFonts.AndroidCamera);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconVerified, IonIconsFonts.CheckmarkCircled);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconPro, FontAwesomeIcon.Rocket);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconInfo, IonIconsFonts.InformationCircled);

                IconVerified.Visibility = ViewStates.Invisible;
                IconPro.Visibility      = ViewStates.Invisible;

                BtnEdit        = (FloatingActionButton)view.FindViewById(Resource.Id.fab);
                BtnEdit.Click += BtnEditOnClick;

                ImageAvatar.Click += ImageAvatarOnClick;
                IconCamera.Click  += ImageAvatarOnClick;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent(View view)
        {
            try
            {
                UserProfileImage = (ImageView)view.FindViewById(Resource.Id.user_pic);
                ImgSetting       = (ImageView)view.FindViewById(Resource.Id.settingsbutton);
                ImgChange        = (TextView)view.FindViewById(Resource.Id.IconAdd);

                ImgSetting.SetColorFilter(AppSettings.SetTabDarkTheme ? Color.White : Color.Black);

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);

                TxtName        = (TextView)view.FindViewById(Resource.Id.card_name);
                TxtUsername    = (TextView)view.FindViewById(Resource.Id.card_dist);
                BtnEditProfile = (Button)view.FindViewById(Resource.Id.cont);

                TxtCountFollowers = (TextView)view.FindViewById(Resource.Id.CountFollowers);
                TxtCountFollowing = (TextView)view.FindViewById(Resource.Id.CountFollowing);
                TxtCountFav       = (TextView)view.FindViewById(Resource.Id.CountFav);

                TxtFollowers = view.FindViewById <TextView>(Resource.Id.txtFollowers);
                TxtFollowing = view.FindViewById <TextView>(Resource.Id.txtFollowing);
                TxtFav       = view.FindViewById <TextView>(Resource.Id.txtFav);

                LinFollowers = view.FindViewById <LinearLayout>(Resource.Id.layoutFollowers);
                LinFollowing = view.FindViewById <LinearLayout>(Resource.Id.layoutFollowing);
                LinFavorites = view.FindViewById <LinearLayout>(Resource.Id.layoutFavorites);

                IconVerified = (TextView)view.FindViewById(Resource.Id.verified);
                IconBusiness = (TextView)view.FindViewById(Resource.Id.business);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconVerified, IonIconsFonts.CheckmarkCircled);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, IconBusiness, IonIconsFonts.SocialUsd);

                IconVerified.Visibility = ViewStates.Gone;
                IconBusiness.Visibility = ViewStates.Gone;

                Layoutfriends = (RelativeLayout)view.FindViewById(Resource.Id.layoutfriends);
                //Layoutfriends.SetBackgroundResource(AppSettings.SetTabDarkTheme ? Resource.Drawable.layout_bg_profile_friends_dark : Resource.Drawable.layout_bg_profile_friends);

                TxtAbout = (AutoLinkTextView)view.FindViewById(Resource.Id.description);
                TextSanitizerAutoLink = new TextSanitizer(TxtAbout, Activity);

                TxtCountFollowers.Text = "0";
                TxtCountFollowing.Text = "0";
                TxtCountFav.Text       = "0";

                EmptyStateLayout = (ViewStub)view.FindViewById(Resource.Id.viewStub);

                SwipeRefreshLayout = (SpringView)view.FindViewById(Resource.Id.material_style_ptr_frame);
                SwipeRefreshLayout.SetType(SpringView.Type.Overlap);
                SwipeRefreshLayout.Header = new PixelDefaultHeader(Activity);
                SwipeRefreshLayout.Footer = new PixelDefaultFooter(Activity);
                SwipeRefreshLayout.Enable = true;
                SwipeRefreshLayout.SetListener(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }