Exemplo n.º 1
0
        public void SetBadgeCount(int count)
        {
            var TabNotifyText = tabView.CustomView.FindViewById <TextView>(Resource.Id.txtTabNotification);

            if (count == Convert.ToInt16(TabNotifyText.Text))
            {
                return;
            }
            badge = count;
            if (badge > 0)
            {
                TabNotifyText.Visibility = ViewStates.Visible;
                AnimUtils.ShowAnimationWithAlpha(TabNotifyText, () => {
                    TabNotifyText.Text = $"{count}";
                });
                //tabView.CustomView.FindViewById<TextView>(Resource.Id.txtTabNotification).Visibility = ViewStates.Visible;
            }
            else
            {
                TabNotifyText.Text       = "0";
                TabNotifyText.Visibility = ViewStates.Gone;
            }
        }