Пример #1
0
        void SetIndicators()
        {
            if (Element.ShowIndicators)
            {
                SetPosition();



                indicators?.SetViewPager(viewPager);

                // IndicatorsTintColor BP
                indicators?.SetFillColor(Element.IndicatorsTintColor.ToAndroid());

                // CurrentPageIndicatorTintColor BP
                indicators?.SetPageColor(Element.CurrentPageIndicatorTintColor.ToAndroid());

                // IndicatorsShape BP
                indicators?.SetStyle((int)Element.IndicatorsShape); // Rounded or Squared

                indicators?.SetPadding(0, 0, 0, (int)DpToPixels(this.Context, Convert.ToSingle(77)));

                indicators.ScaleX = 1.5f;
                indicators.ScaleY = 1.5f;
            }
            else
            {
                indicators?.RemoveAllViews();
            }

            // ShowIndicators BP
            if (indicators != null)
            {
                indicators.Visibility = Element.ShowIndicators ? AViews.ViewStates.Visible : AViews.ViewStates.Gone;
            }
        }
        void SetIndicators()

        {
            if (Element.ShowIndicators)

            {
                SetPosition();



                indicators?.SetViewPager(viewPager);



                // IndicatorsTintColor BP

                indicators?.SetFillColor(Element.IndicatorsTintColor.ToAndroid());



                // CurrentPageIndicatorTintColor BP

                indicators?.SetPageColor(Element.CurrentPageIndicatorTintColor.ToAndroid());



                // IndicatorsShape BP

                indicators?.SetStyle(Element.IndicatorsShape); // Rounded or Squared
            }

            else

            {
                indicators?.RemoveAllViews();
            }



            // ShowIndicators BP

            if (indicators != null)
            {
                indicators.Visibility = Element.ShowIndicators ? AViews.ViewStates.Visible : AViews.ViewStates.Gone;
            }
        }