Example #1
0
        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);
            }
        }
Example #2
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.SetDefaultStyle();

                FilterButton = (TextView)view.FindViewById(Resource.Id.toolbar_title);
                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, FilterButton, IonIconsFonts.AndroidOptions);
                FilterButton.SetTextColor(Color.White);
                FilterButton.SetTextSize(ComplexUnitType.Sp, 20f);
                FilterButton.Visibility = ViewStates.Visible;

                ShowGoogleAds(view, MRecycler);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }