private void InitComponent()
        {
            try
            {
                StoryImageView     = FindViewById <ImageView>(Resource.Id.imagstoryDisplay);
                StoryVideoView     = FindViewById <VideoView>(Resource.Id.VideoView);
                PlayIconVideo      = FindViewById <CircleButton>(Resource.Id.Videoicon_button);
                EmojisView         = FindViewById <ImageView>(Resource.Id.emojiicon);
                EmojisIconEditText = FindViewById <EmojiconEditText>(Resource.Id.EmojiconEditText5);
                AddStoryButton     = FindViewById <CircleButton>(Resource.Id.sendButton);
                RootView           = FindViewById <RelativeLayout>(Resource.Id.storyDisplay);

                StoriesProgress = FindViewById <StoriesProgressView>(Resource.Id.stories);
                if (StoriesProgress != null)
                {
                    StoriesProgress.Visibility = ViewStates.Gone;
                }

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

                var emojisIcon = new EmojIconActions(this, RootView, EmojisIconEditText, EmojisView);
                emojisIcon.ShowEmojIcon();
                emojisIcon.SetIconsIds(Resource.Drawable.ic_action_keyboard, Resource.Drawable.ic_action_sentiment_satisfied_alt);

                PlayIconVideo.Visibility = ViewStates.Gone;
                PlayIconVideo.Tag        = "Play";
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
        private void InitComponent()
        {
            try
            {
                RootView             = MainView.FindViewById <RelativeLayout>(Resource.Id.root);
                Emojiicon            = MainView.FindViewById <AppCompatImageView>(Resource.Id.emojiicon);
                EmojiconEditTextView = MainView.FindViewById <EmojiconEditText>(Resource.Id.EmojiconEditText5);
                SendButton           = MainView.FindViewById <CircleButton>(Resource.Id.sendButton);
                MRecycler            = MainView.FindViewById <RecyclerView>(Resource.Id.commentRecyler);
                ProgressBarLoader    = MainView.FindViewById <ProgressBar>(Resource.Id.sectionProgress);
                EmptyStateLayout     = MainView.FindViewById <ViewStub>(Resource.Id.viewStub);
                CommentButtomLayout  = MainView.FindViewById <RelativeLayout>(Resource.Id.commentonButtom);
                SwipeRefreshLayout   = MainView.FindViewById <SwipeRefreshLayout>(Resource.Id.swipeRefreshLayout);

                SwipeRefreshLayout.SetDefaultStyle();
                SwipeRefreshLayout.Refresh += SwipeRefreshLayoutOnRefresh;

                EmojiconEditTextView.RequestFocus();

                ProgressBarLoader.Visibility = ViewStates.Visible;

                EmojIconActions emojis = new EmojIconActions(Activity, RootView, EmojiconEditTextView, Emojiicon);
                emojis.ShowEmojIcon();

                SendButton.Click += SendButton_Click;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent()
        {
            try
            {
                RootView             = MainView.FindViewById <RelativeLayout>(Resource.Id.root);
                Emojiicon            = MainView.FindViewById <AppCompatImageView>(Resource.Id.emojiicon);
                EmojiconEditTextView = MainView.FindViewById <EmojiconEditText>(Resource.Id.EmojiconEditText5);
                SendButton           = MainView.FindViewById <CircleButton>(Resource.Id.sendButton);
                CommentRecyclerView  = MainView.FindViewById <RecyclerView>(Resource.Id.recyler);
                XSwipeRefreshLayout  = MainView.FindViewById <SwipeRefreshLayout>(Resource.Id.swipeRefreshLayout);
                ProgressBarLoader    = MainView.FindViewById <ProgressBar>(Resource.Id.sectionProgress);
                EmptyStateLayout     = MainView.FindViewById <ViewStub>(Resource.Id.viewStub);
                ViewboxText          = MainView.FindViewById <TextView>(Resource.Id.viewbox);
                ViewboxText.SetTextColor(AppSettings.SetTabDarkTheme ? Color.White : Color.Black);

                XSwipeRefreshLayout.SetColorSchemeResources(Android.Resource.Color.HoloBlueLight, Android.Resource.Color.HoloGreenLight, Android.Resource.Color.HoloOrangeLight, Android.Resource.Color.HoloRedLight);
                XSwipeRefreshLayout.Refreshing = false;
                XSwipeRefreshLayout.Enabled    = true;
                XSwipeRefreshLayout.SetProgressBackgroundColorSchemeColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#424242") : Color.ParseColor("#f7f7f7"));

                ProgressBarLoader.Visibility = ViewStates.Visible;

                EmojiconEditTextView.SetTextColor(AppSettings.SetTabDarkTheme ? Color.White : Color.Gray);
                EmojiconEditTextView.SetHintTextColor(AppSettings.SetTabDarkTheme ? Color.White : Color.Gray);

                EmojIconActions emojis = new EmojIconActions(Activity, RootView, EmojiconEditTextView, Emojiicon);
                emojis.ShowEmojIcon();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Beispiel #4
0
        private void InitComponent()
        {
            try
            {
                RootView = FindViewById <RelativeLayout>(Resource.Id.rootChatWindowView);

                ChatEmojisImage        = FindViewById <AppCompatImageView>(Resource.Id.emojiicon);
                EmojisIconEditTextView = FindViewById <EmojiconEditText>(Resource.Id.EmojiconEditText5);
                ChatSendButton         = FindViewById <CircleButton>(Resource.Id.sendButton);
                ChatBoxRecyclerView    = FindViewById <RecyclerView>(Resource.Id.recyler);
                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.SetProgressBackgroundColorSchemeColor(AppSettings.SetTabDarkTheme ? Color.ParseColor("#424242") : Color.ParseColor("#f7f7f7"));
                ImageButton = FindViewById <CircleButton>(Resource.Id.imageButton);

                if (AppSettings.SetTabDarkTheme)
                {
                    ImageButton.SetColor(Color.Rgb(40, 40, 40));
                }

                ChatSendButton.Tag = "Text";
                ChatSendButton.SetImageResource(Resource.Drawable.SendLetter);

                var emojisIcon = new EmojIconActions(this, RootView, EmojisIconEditTextView, ChatEmojisImage);
                emojisIcon.ShowEmojIcon();

                Methods.SetColorEditText(EmojisIconEditTextView, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent(View contentView)
        {
            try
            {
                Image            = contentView.FindViewById <ImageView>(Resource.Id.card_pro_pic);
                CommentText      = contentView.FindViewById <AutoLinkTextView>(Resource.Id.active);
                UsernameTextView = contentView.FindViewById <TextView>(Resource.Id.username);
                TimeTextView     = contentView.FindViewById <TextView>(Resource.Id.time);
                LikeiconView     = contentView.FindViewById <ImageView>(Resource.Id.Likeicon);
                UnLikeiconView   = contentView.FindViewById <ImageView>(Resource.Id.UnLikeicon);
                ReplyiconView    = contentView.FindViewById <TextView>(Resource.Id.ReplyIcon);
                LikeNumber       = contentView.FindViewById <TextView>(Resource.Id.LikeNumber);
                UnLikeNumber     = contentView.FindViewById <TextView>(Resource.Id.UnLikeNumber);
                RepliesCount     = contentView.FindViewById <TextView>(Resource.Id.RepliesCount);
                LikeButton       = contentView.FindViewById <LinearLayout>(Resource.Id.LikeButton);
                UnLikeButton     = contentView.FindViewById <LinearLayout>(Resource.Id.UnLikeButton);
                ReplyButton      = contentView.FindViewById <LinearLayout>(Resource.Id.ReplyButton);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, ReplyiconView, IonIconsFonts.Reply);

                RootView             = contentView.FindViewById <LinearLayout>(Resource.Id.root);
                EmojiconEditTextView = contentView.FindViewById <EmojiconEditText>(Resource.Id.EmojiconEditText5);
                Emojiicon            = contentView.FindViewById <AppCompatImageView>(Resource.Id.emojiicon);
                SendButton           = contentView.FindViewById <CircleButton>(Resource.Id.sendButton);
                ReplyRecyclerView    = contentView.FindViewById <RecyclerView>(Resource.Id.recyler);
                EmptyStateLayout     = contentView.FindViewById <ViewStub>(Resource.Id.viewStub);

                var emojisIcon = new EmojIconActions(Activity, RootView, EmojiconEditTextView, Emojiicon);
                emojisIcon.ShowEmojIcon();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent()
        {
            try
            {
                StoryImageView     = FindViewById <ImageView>(Resource.Id.imagstoryDisplay);
                StoryVideoView     = FindViewById <VideoView>(Resource.Id.VideoView);
                PlayIconVideo      = FindViewById <CircleButton>(Resource.Id.Videoicon_button);
                EmojisView         = FindViewById <AppCompatImageView>(Resource.Id.emojiicon);
                EmojisIconEditText = FindViewById <EmojiconEditText>(Resource.Id.EmojiconEditText5);
                AddStoryButton     = FindViewById <CircleButton>(Resource.Id.sendButton);
                RootView           = FindViewById <RelativeLayout>(Resource.Id.storyDisplay);

                StoriesProgress            = FindViewById <StoriesProgressView>(Resource.Id.stories);
                StoriesProgress.Visibility = ViewStates.Gone;

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

                var emojisIcon = new EmojIconActions(this, RootView, EmojisIconEditText, EmojisView);
                emojisIcon.ShowEmojIcon();

                PlayIconVideo.Visibility = ViewStates.Gone;
                PlayIconVideo.Tag        = "Play";
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent()
        {
            try
            {
                RootView = FindViewById <LinearLayout>(Resource.Id.main_content);

                MRecycler = (RecyclerView)FindViewById(Resource.Id.recycler_view);

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

                LikeCountBox  = FindViewById <TextView>(Resource.Id.like_box);
                EmojisView    = FindViewById <ImageView>(Resource.Id.emojiicon);
                TxtComment    = FindViewById <EmojiconEditText>(Resource.Id.commenttext);
                ImgSent       = FindViewById <ImageView>(Resource.Id.send);
                ImgGallery    = FindViewById <ImageView>(Resource.Id.image);
                ImgBack       = FindViewById <ImageView>(Resource.Id.back);
                CommentLayout = FindViewById <LinearLayout>(Resource.Id.commentLayout);

                BtnVoice = FindViewById <CircleButton>(Resource.Id.voiceButton);
                BtnVoice.LongClickable = true;
                BtnVoice.Tag           = "Free";
                BtnVoice.SetImageResource(Resource.Drawable.microphone);

                TopFragment = FindViewById <FrameLayout>(Resource.Id.TopFragmentHolder);

                TxtComment.Text = "";
                PathImage       = "";
                TextRecorder    = "";

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

                RecordSoundFragment = new RecordSoundFragment();
                SupportFragmentManager.BeginTransaction().Add(TopFragment.Id, RecordSoundFragment, RecordSoundFragment.Tag);

                switch (AppSettings.FlowDirectionRightToLeft)
                {
                case true:
                    ImgBack.SetImageResource(Resource.Drawable.ic_action_ic_back_rtl);
                    break;
                }

                ImgGallery.SetImageDrawable(AppSettings.SetTabDarkTheme ? GetDrawable(Resource.Drawable.ic_action_addpost_Ligth) : GetDrawable(Resource.Drawable.ic_action_AddPost));

                var emojisIcon = new EmojIconActions(this, RootView, TxtComment, EmojisView);
                emojisIcon.ShowEmojIcon();
                emojisIcon.SetIconsIds(Resource.Drawable.ic_action_keyboard, Resource.Drawable.ic_action_sentiment_satisfied_alt);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Beispiel #8
0
        private void InitComponent()
        {
            try
            {
                CollapsingToolbar       = (CollapsingToolbarLayout)FindViewById(Resource.Id.collapsingToolbar);
                CollapsingToolbar.Title = "";

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


                MRecycler    = (RecyclerView)FindViewById(Resource.Id.userRecyler);
                TxtGroupName = FindViewById <EmojiconEditText>(Resource.Id.groupName);
                ImageGroup   = FindViewById <ImageView>(Resource.Id.groupCover);
                BtnImage     = FindViewById <Button>(Resource.Id.btn_selectimage);

                ChatEmojImage = FindViewById <ImageView>(Resource.Id.emojiicon);

                BtnAdd = FindViewById <FloatingActionButton>(Resource.Id.fab);

                BtnDeleteGroup            = FindViewById <Button>(Resource.Id.deleteGroupButton);
                BtnDeleteGroup.Visibility = ViewStates.Visible;

                BtnExitGroup            = FindViewById <TextView>(Resource.Id.exitGroupButton);
                BtnExitGroup.Visibility = ViewStates.Visible;

                if (AppSettings.SetTabDarkTheme)
                {
                    TxtGroupName.SetTextColor(Color.White);
                    TxtGroupName.SetHintTextColor(Color.White);
                }
                else
                {
                    TxtGroupName.SetTextColor(Color.ParseColor("#444444"));
                    TxtGroupName.SetHintTextColor(Color.ParseColor("#444444"));
                }

                var emojisIcon = new EmojIconActions(this, CollapsingToolbar, TxtGroupName, ChatEmojImage);
                emojisIcon.ShowEmojIcon();
                emojisIcon.SetIconsIds(Resource.Drawable.ic_action_keyboard, Resource.Drawable.ic_action_sentiment_satisfied_alt);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Beispiel #9
0
        private void InitComponent()
        {
            try
            {
                RootView = FindViewById <LinearLayout>(Resource.Id.main_content);

                MRecycler = (RecyclerView)FindViewById(Resource.Id.recycler_view);

                EmojisView    = FindViewById <ImageView>(Resource.Id.emojiicon);
                TxtComment    = FindViewById <EmojiconEditText>(Resource.Id.commenttext);
                ImgSent       = FindViewById <ImageView>(Resource.Id.send);
                ImgGallery    = FindViewById <ImageView>(Resource.Id.image);
                ImgBack       = FindViewById <ImageView>(Resource.Id.back);
                CommentLayout = FindViewById <ViewStub>(Resource.Id.comment_layout);

                ReplyCountTextView = FindViewById <TextView>(Resource.Id.replyCountTextview);

                switch (AppSettings.FlowDirectionRightToLeft)
                {
                case true:
                    ImgBack.SetImageResource(Resource.Drawable.ic_action_ic_back_rtl);
                    break;
                }

                ImgGallery.SetImageDrawable(AppSettings.SetTabDarkTheme ? GetDrawable(Resource.Drawable.ic_action_addpost_Ligth) : GetDrawable(Resource.Drawable.ic_action_AddPost));

                var repliesCount = !string.IsNullOrEmpty(CommentObject.RepliesCount) ? CommentObject.RepliesCount : CommentObject.Replies ?? "";
                ReplyCountTextView.Text = repliesCount + " " + GetString(Resource.String.Lbl_Replies);

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

                TxtComment.Text = "@" + CommentObject?.Publisher?.Username + " " ?? "";
                PathImage       = "";

                var emojisIcon = new EmojIconActions(this, RootView, TxtComment, EmojisView);
                emojisIcon.ShowEmojIcon();
                emojisIcon.SetIconsIds(Resource.Drawable.ic_action_keyboard, Resource.Drawable.ic_action_sentiment_satisfied_alt);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Beispiel #10
0
        private void InitComponent()
        {
            try
            {
                ImageBlog = FindViewById <ImageView>(Resource.Id.imageBlog);
                TxtTitle  = FindViewById <TextView>(Resource.Id.title);
                TxtHtml   = FindViewById <WebView>(Resource.Id.LocalWebView);
                TxtViews  = FindViewById <TextView>(Resource.Id.views);
                BtnMore   = FindViewById <ImageButton>(Resource.Id.more);

                LoadMore         = FindViewById <TextView>(Resource.Id.LoadMore);
                CategoryName     = FindViewById <TextView>(Resource.Id.CategoryName);
                ClockIcon        = FindViewById <TextView>(Resource.Id.ClockIcon);
                DateTimeTextView = FindViewById <TextView>(Resource.Id.DateTime);
                LikeIcon         = FindViewById <TextView>(Resource.Id.LikeIcon);
                LikeCount        = FindViewById <TextView>(Resource.Id.LikeCount);
                UnlikeIcon       = FindViewById <TextView>(Resource.Id.UnlikeIcon);
                UnlikeNumber     = FindViewById <TextView>(Resource.Id.UnlikeNumber);
                EmptyStateLayout = FindViewById <ViewStub>(Resource.Id.viewStub);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, ClockIcon, IonIconsFonts.AndroidTime);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, LikeIcon, IonIconsFonts.Thumbsup);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, UnlikeIcon, IonIconsFonts.Thumbsdown);

                RootView             = FindViewById <CoordinatorLayout>(Resource.Id.root);
                EmojIcon             = FindViewById <AppCompatImageView>(Resource.Id.emojiicon);
                EmojIconEditTextView = FindViewById <EmojiconEditText>(Resource.Id.EmojiconEditText5);
                SendButton           = FindViewById <CircleButton>(Resource.Id.sendButton);
                MRecycler            = FindViewById <RecyclerView>(Resource.Id.recyler);
                ProgressBarLoader    = FindViewById <ProgressBar>(Resource.Id.sectionProgress);

                ProgressBarLoader.Visibility = ViewStates.Visible;

                EmojIconActions emojis = new EmojIconActions(this, RootView, EmojIconEditTextView, EmojIcon);
                emojis.ShowEmojIcon();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent()
        {
            try
            {
                IconClose = CommentWindow.FindViewById <TextView>(Resource.Id.IconColse);

                RootView               = CommentWindow.FindViewById <RelativeLayout>(Resource.Id.root);
                EmojisIcon             = CommentWindow.FindViewById <AppCompatImageView>(Resource.Id.emojiicon);
                EmojisIconEditTextView = CommentWindow.FindViewById <EmojiconEditText>(Resource.Id.EmojiconEditText5);
                SendButton             = CommentWindow.FindViewById <CircleButton>(Resource.Id.sendButton);
                MRecycler              = CommentWindow.FindViewById <RecyclerView>(Resource.Id.recyler);
                SwipeRefreshLayout     = CommentWindow.FindViewById <SwipeRefreshLayout>(Resource.Id.swipeRefreshLayout);
                ProgressBarLoader      = CommentWindow.FindViewById <ProgressBar>(Resource.Id.sectionProgress);
                EmptyStateLayout       = CommentWindow.FindViewById <ViewStub>(Resource.Id.viewStub);

                SendButton.Click += SendButtonOnClick;
                IconClose.Click  += IconCloseOnClick;

                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 += SwipeRefreshLayout_Refresh;

                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconClose, FontAwesomeIcon.Times);

                ProgressBarLoader.Visibility = ViewStates.Visible;

                var emojis = new EmojIconActions(ActivityContext, RootView, EmojisIconEditTextView, EmojisIcon);
                emojis.ShowEmojIcon();
                EmojisIconEditTextView.RequestFocus();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent()
        {
            try
            {
                RootView = FindViewById <LinearLayout>(Resource.Id.main_content);

                MRecycler = (RecyclerView)FindViewById(Resource.Id.recycler_view);

                EmojisView    = FindViewById <ImageView>(Resource.Id.emojiicon);
                TxtComment    = FindViewById <EmojiconEditText>(Resource.Id.commenttext);
                ImgSent       = FindViewById <ImageView>(Resource.Id.send);
                ImgGallery    = FindViewById <ImageView>(Resource.Id.image);
                ImgBack       = FindViewById <ImageView>(Resource.Id.back);
                CommentLayout = FindViewById <ViewStub>(Resource.Id.comment_layout);

                ReplyCountTextView = FindViewById <TextView>(Resource.Id.replyCountTextview);

                switch (AppSettings.FlowDirectionRightToLeft)
                {
                case true:
                    ImgBack.SetImageResource(Resource.Drawable.ic_action_ic_back_rtl);
                    break;
                }

                ImgGallery.Visibility = ViewStates.Gone;

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

                var emojisIcon = new EmojIconActions(this, RootView, TxtComment, EmojisView);
                emojisIcon.ShowEmojIcon();
                emojisIcon.SetIconsIds(Resource.Drawable.ic_action_keyboard, Resource.Drawable.ic_action_sentiment_satisfied_alt);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
        private void InitComponent(View view)
        {
            try
            {
                Image        = view.FindViewById <CircleImageView>(Resource.Id.card_pro_pic);
                CommentText  = view.FindViewById <AutoLinkTextView>(Resource.Id.active);
                LikeIcon     = view.FindViewById <ImageView>(Resource.Id.likeIcon);
                TimeTextView = view.FindViewById <TextView>(Resource.Id.time);
                LikeCount    = view.FindViewById <TextView>(Resource.Id.Like);
                ReplyButton  = view.FindViewById <TextView>(Resource.Id.reply);

                RootView             = view.FindViewById <RelativeLayout>(Resource.Id.root);
                EmojiIcon            = view.FindViewById <AppCompatImageView>(Resource.Id.emojiicon);
                EmojIconEditTextView = view.FindViewById <EmojiconEditText>(Resource.Id.EmojiconEditText5);
                SendButton           = view.FindViewById <CircleButton>(Resource.Id.sendButton);
                ViewboxText          = view.FindViewById <TextView>(Resource.Id.viewbox);
                ViewboxText.SetTextColor(AppSettings.SetTabDarkTheme ? Color.White : Color.Black);

                MRecycler        = (RecyclerView)view.FindViewById(Resource.Id.recyler);
                EmptyStateLayout = view.FindViewById <ViewStub>(Resource.Id.viewStub);

                EmojIconEditTextView.SetTextColor(AppSettings.SetTabDarkTheme ? Color.White : Color.Gray);
                EmojIconEditTextView.SetHintTextColor(AppSettings.SetTabDarkTheme ? Color.White : Color.Gray);

                EmojIconActions emojis = new EmojIconActions(Activity, RootView, EmojIconEditTextView, EmojiIcon);
                emojis.ShowEmojIcon();

                if (AppSettings.SetTabDarkTheme)
                {
                    LikeIcon.SetBackgroundResource(Resource.Drawable.Shape_Circle_Black);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                Window.SetSoftInputMode(SoftInput.AdjustResize);
                base.OnCreate(savedInstanceState);

                if (AppSettings.SetTabDarkTheme)
                {
                    Window.SetBackgroundDrawableResource(Resource.Drawable.chatBackground3_Dark);
                }
                else
                {
                    Window.SetBackgroundDrawableResource(Resource.Drawable.chatBackground3);
                }

                // Set our view from the "MessagesBox_Layout" layout resource
                SetContentView(Resource.Layout.MessagesBox_Layout);

                var data = Intent.GetStringExtra("UserId") ?? "Data not available";
                if (data != "Data not available" && !string.IsNullOrEmpty(data))
                {
                    Userid = int.Parse(data);                                                              // to_id
                }
                try
                {
                    var type = Intent.GetStringExtra("TypeChat") ?? "Data not available";
                    if (type != "Data not available" && !string.IsNullOrEmpty(type))
                    {
                        TypeChat = type;
                        string  json = Intent.GetStringExtra("UserItem");
                        dynamic item;
                        switch (type)
                        {
                        case "LastChat":
                            item = JsonConvert.DeserializeObject <GetChatsObject.Data>(json);
                            if (item != null)
                            {
                                DataUser = item;
                            }
                            break;

                        case "comment":
                            item = JsonConvert.DeserializeObject <CommentObject>(json);
                            if (item != null)
                            {
                                UserInfoComment = item;
                            }
                            break;

                        case "following":
                        case "followers":
                        case "suggestion":
                        case "search":
                        case "Notification":
                        case "new":
                        case "NewsFeedPost":
                        case "OneSignalNotification":
                        case "UserData":
                            item = JsonConvert.DeserializeObject <UserDataObject>(json);
                            if (item != null)
                            {
                                UserInfoData = item;
                            }
                            break;
                        }
                    }
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                }

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

                var emojisIcon = new EmojIconActions(this, RootView, EmojiconEditTextView, ChatEmojiImage);
                emojisIcon.ShowEmojIcon();

                //Set Title ToolBar and data chat user
                loadData_ItemUser();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }