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;
                EmojisView.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
            {
                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);
                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
            {
                StoryAboutLayout     = FindViewById <LinearLayout>(Resource.Id.storyaboutLayout);
                StoryImageView       = FindViewById <ImageView>(Resource.Id.imagstoryDisplay);
                StoriesProgress      = FindViewById <StoriesProgressView>(Resource.Id.stories);
                CaptionStoryTextView = FindViewById <TextView>(Resource.Id.storyaboutText);
                UserImageView        = FindViewById <ImageView>(Resource.Id.imageAvatar);
                UsernameTextView     = FindViewById <TextView>(Resource.Id.username);
                LastSeenTextView     = FindViewById <TextView>(Resource.Id.time);
                DeleteIconView       = FindViewById <TextView>(Resource.Id.DeleteIcon);
                ReverseView          = FindViewById <View>(Resource.Id.reverse);
                SkipView             = FindViewById <View>(Resource.Id.skip);

                StoriesProgress.Visibility = ViewStates.Visible;

                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, DeleteIconView, FontAwesomeIcon.TrashAlt);

                ReverseView.SetOnTouchListener(this);
                SkipView.SetOnTouchListener(this);

                InitVideoView();

                var checkSection = GlobalContext?.NewsFeedTab?.PostFeedAdapter?.HolderStory?.StoryAdapter?.StoryList;
                StoryList = checkSection?.Count switch
                {
                    > 0 => new ObservableCollection <StoryDataObject>(checkSection),
                    _ => StoryList
                };
            }
        private void InitComponent()
        {
            try
            {
                StoryaboutLayout     = FindViewById <LinearLayout>(Resource.Id.storyaboutLayout);
                StoryImageView       = FindViewById <ImageView>(Resource.Id.imagstoryDisplay);
                StoriesProgress      = FindViewById <StoriesProgressView>(Resource.Id.stories);
                CaptionStoryTextView = FindViewById <TextView>(Resource.Id.storyaboutText);
                UserImageView        = FindViewById <ImageView>(Resource.Id.imageAvatar);
                UsernameTextView     = FindViewById <TextView>(Resource.Id.username);
                LastSeenTextView     = FindViewById <TextView>(Resource.Id.time);
                DeleteIconView       = FindViewById <TextView>(Resource.Id.DeleteIcon);
                ReverseView          = FindViewById <View>(Resource.Id.reverse);
                SkipView             = FindViewById <View>(Resource.Id.skip);

                StoriesProgress.Visibility = ViewStates.Visible;

                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, DeleteIconView, FontAwesomeIcon.TrashAlt);

                ReverseView.SetOnTouchListener(this);
                SkipView.SetOnTouchListener(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        private void InitComponent()
        {
            try
            {
                TxtEdit = FindViewById <TextView>(Resource.Id.toolbar_title);
                TxtEdit.SetTextColor(AppSettings.SetTabDarkTheme ? Color.White : Color.Black);
                TxtEdit.Visibility = ViewStates.Gone;

                StoryImageView     = FindViewById <ImageView>(Resource.Id.imagstoryDisplay);
                StoryVideoView     = FindViewById <VideoView>(Resource.Id.VideoView);
                PlayIconVideo      = FindViewById <CircleButton>(Resource.Id.Videoicon_button);
                EmojisIconEditText = FindViewById <EditText>(Resource.Id.captionText);
                AddStoryButton     = FindViewById <CircleButton>(Resource.Id.sendButton);

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

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

                PlayIconVideo.Visibility = ViewStates.Gone;
                PlayIconVideo.Tag        = "Play";
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Exemple #6
0
        public void OnComplete()
        {
            try
            {
                IndexItem++;
                if (StoryList.Count > 0 && StoryList.Count > IndexItem)
                {
                    DataStories = StoryList[IndexItem];

                    StoriesProgress = null !;

                    LoadData(DataStories);

                    DataStories.ProfileIndicator = AppSettings.StoryReadColor;
                    GlobalContext?.NewsFeedTab.PostFeedAdapter?.HolderStory?.StoryAdapter.NotifyItemChanged(IndexItem, "StoryRefresh");
                }
                else
                {
                    AdsGoogle.Ad_Interstitial(this);
                    Finish();
                }
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);

            this._stories = FindViewById <StoriesProgressView>(Resource.Id.stories);
            this._stories.SetStoriesCount(_resource.Length);
            this._stories.SetStoryDuration(5000L);
            this._stories.SetStoriesListener(this);

            this._image   = FindViewById <ImageView>(Resource.Id.imageView);
            _image.Click += delegate { _stories.Skip(); };
            _image.SetImageResource(_resource[_counter]);
            this._stories.StartStories();
        }
 private void DestroyBasic()
 {
     try
     {
         StoryImageView     = null !;
         StoryVideoView     = null !;
         PlayIconVideo      = null !;
         EmojisView         = null !;
         EmojisIconEditText = null !;
         AddStoryButton     = null !;
         RootView           = null !;
         StoriesProgress    = null !;
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
 private void DestroyBasic()
 {
     try
     {
         StoryImageView     = null;
         StoryVideoView     = null;
         PlayIconVideo      = null;
         EmojisView         = null;
         EmojisIconEditText = null;
         AddStoryButton     = null;
         RootView           = null;
         StoriesProgress    = null;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
 private void DestroyBasic()
 {
     try
     {
         StoryVideoView       = null;
         StoryaboutLayout     = null;
         StoryImageView       = null;
         StoriesProgress      = null;
         CaptionStoryTextView = null;
         UserImageView        = null;
         UsernameTextView     = null;
         LastSeenTextView     = null;
         DeleteIconView       = null;
         ReverseView          = null;
         SkipView             = null;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Exemple #11
0
 private void DestroyBasic()
 {
     try
     {
         StoryVideoView       = null !;
         StoryAboutLayout     = null !;
         StoryImageView       = null !;
         StoriesProgress      = null !;
         CaptionStoryTextView = null !;
         UserImageView        = null !;
         UsernameTextView     = null !;
         LastSeenTextView     = null !;
         DeleteIconView       = null !;
         ReverseView          = null !;
         SkipView             = null !;
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
Exemple #12
0
        private void InitComponent()
        {
            try
            {
                StoryAboutLayout     = FindViewById <LinearLayout>(Resource.Id.storyaboutLayout);
                StoryImageView       = FindViewById <ImageView>(Resource.Id.imagstoryDisplay);
                StoriesProgress      = FindViewById <StoriesProgressView>(Resource.Id.stories);
                CaptionStoryTextView = FindViewById <TextView>(Resource.Id.storyaboutText);
                UserImageView        = FindViewById <ImageView>(Resource.Id.imageAvatar);
                UsernameTextView     = FindViewById <TextView>(Resource.Id.username);
                LastSeenTextView     = FindViewById <TextView>(Resource.Id.time);
                DeleteIconView       = FindViewById <TextView>(Resource.Id.DeleteIcon);
                ReverseView          = FindViewById <View>(Resource.Id.reverse);
                SkipView             = FindViewById <View>(Resource.Id.skip);

                StoriesProgress.Visibility = ViewStates.Visible;

                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, DeleteIconView, FontAwesomeIcon.TrashAlt);

                ReverseView.SetOnTouchListener(this);
                SkipView.SetOnTouchListener(this);

                InitVideoView();

                var checkSection = GlobalContext?.NewsFeedTab?.PostFeedAdapter?.HolderStory?.StoryAdapter?.StoryList;
                if (checkSection?.Count > 0)
                {
                    StoryList = new ObservableCollection <GetUserStoriesObject.StoryObject>(checkSection);
                    //StoryList.RemoveAt(IndexItem);
                }
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }