69 references to ToAndroid
Microsoft.Maui.Controls.Compatibility (69)
Android\AppCompat\CheckBoxRendererBase.cs (3)
195 var tintColor = Element.Color == null ? Application.AccentColor.ToAndroid() : Element.Color.ToAndroid(); 205 SetBackgroundColor(Element.BackgroundColor.ToAndroid());
Android\AppCompat\FlyoutPageRenderer.cs (2)
419 SetBackgroundColor(backgroundColor.ToAndroid()); 496 SetScrimColor(isShowingSplit ? Colors.Transparent.ToAndroid() : (int)DefaultScrimColor);
Android\AppCompat\NavigationPageRenderer.cs (3)
978 bar.BackgroundTintList = ColorStateList.ValueOf(tintColor.ToAndroid()); 986 bar.SetTitleTextColor(textColor.ToAndroid().ToArgb()); 998 icon.Color = textColor.ToAndroid().ToArgb();
Android\AppCompat\PickerRenderer.cs (1)
130 title.SetSpan(new ForegroundColorSpan(model.TitleColor.ToAndroid()), 0, title.Length(), SpanTypes.ExclusiveExclusive);
Android\AppCompat\Platform.cs (1)
710 _backgroundView.SetBackgroundColor(modalBkgndColor.ToAndroid());
Android\AppCompat\TabbedPageRenderer.cs (9)
52 int _defaultARGBColor = Colors.Transparent.ToAndroid().ToArgb(); 53 AColor _defaultAndroidColor = Colors.Transparent.ToAndroid(); 720 _bottomNavigationView.SetBackgroundColor(tintColor.ToAndroid()); 733 _tabLayout.BackgroundTintList = ColorStateList.ValueOf(tintColor.ToAndroid()); 774 checkedColor = barTextColor.ToAndroid().ToArgb(); 779 defaultColor = barItemColor.ToAndroid().ToArgb(); 787 checkedColor = barSelectedItemColor.ToAndroid().ToArgb(); 817 int defaultColor = barItemColor.ToAndroid().ToArgb(); 825 checkedColor = barSelectedItemColor.ToAndroid().ToArgb();
Android\BackgroundManager.cs (1)
42 Control.SetBackgroundColor(finalColor.ToAndroid());
Android\BorderBackgroundManager.cs (3)
121 AColor shadowColor = Colors.Transparent.ToAndroid(); 128 shadowColor = _backgroundDrawable.PressedBackgroundColor.ToAndroid(); 154 var rippleColor = _backgroundDrawable.PressedBackgroundColor.ToAndroid();
Android\CollectionView\IndicatorViewRenderer.cs (3)
186 SetBackgroundColor(backgroundColor.ToAndroid()); 280 _pageIndicatorTintColor = IndicatorView.IndicatorColor.ToAndroid(); 281 _currentPageIndicatorTintColor = IndicatorView.SelectedIndicatorColor.ToAndroid();
Android\CollectionView\ItemsViewRenderer.cs (1)
472 SetBackgroundColor(backgroundColor.ToAndroid());
Android\CollectionView\SelectableViewHolder.cs (1)
94 var colorDrawable = new ColorDrawable(color.ToAndroid());
Android\ColorExtensions.cs (3)
27 return ToAndroid(self); 33 return defaultColor.ToAndroid(); 35 return ToAndroid(self);
Android\FastRenderers\FrameRenderer.cs (2)
282 _backgroundDrawable.SetColor(bgColor?.ToAndroid() ?? AColor.White); 325 _backgroundDrawable.SetStroke(3, borderColor.ToAndroid());
Android\FastRenderers\LabelRenderer.cs (1)
312 SetTextColor(c.ToAndroid());
Android\PickerManager.cs (1)
69 spannableTitle.SetSpan(new ForegroundColorSpan(titleColor.ToAndroid()), 0, spannableTitle.Length(), SpanTypes.ExclusiveExclusive);
Android\Renderers\ActivityIndicatorRenderer.cs (1)
58 Control.IndeterminateDrawable?.SetColorFilter(color.ToAndroid(), FilterMode.SrcIn);
Android\Renderers\BorderDrawable.cs (2)
203 paint.Color = pressed ? PressedBackgroundColor.ToAndroid() : BackgroundColor.ToAndroid();
Android\Renderers\BoxRenderer.cs (1)
96 _backgroundDrawable.SetColor(colorToSet.ToAndroid());
Android\Renderers\CircularProgress.cs (2)
46 var progress = color?.ToAndroid() ?? DefaultColor; 60 _backgroudColor = color?.ToAndroid() ?? AColor.Transparent;
Android\Renderers\FontImageSourceHandler.cs (1)
30 Color = (fontsource.Color ?? Colors.White).ToAndroid(),
Android\Renderers\LabelRenderer.cs (1)
191 _view.SetTextColor(c.ToAndroid());
Android\Renderers\ListViewRenderer.cs (1)
467 _refresh.SetColorSchemeColors(Element.RefreshControlColor.ToAndroid());
Android\Renderers\PageRenderer.cs (1)
153 SetBackgroundColor(backgroundColor.ToAndroid());
Android\Renderers\ProgressBarRenderer.cs (1)
73 var tintList = ColorStateList.ValueOf(color.ToAndroid());
Android\Renderers\RefreshViewRenderer.cs (2)
138 SetColorSchemeColors(RefreshView.RefreshColor.ToAndroid()); 140 SetProgressBackgroundColorSchemeColor(RefreshView.BackgroundColor.ToAndroid());
Android\Renderers\SliderRenderer.cs (2)
137 Control.ProgressTintList = ColorStateList.ValueOf(Element.MinimumTrackColor.ToAndroid()); 150 Control.ProgressBackgroundTintList = ColorStateList.ValueOf(Element.MaximumTrackColor.ToAndroid());
Android\Renderers\SwipeViewRenderer.cs (5)
119 SetBackgroundColor(Element.BackgroundColor.ToAndroid()); 376 emptyContentView.SetBackgroundColor(Colors.Transparent.ToAndroid()); 800 Background = new ColorDrawable(formsSwipeItem.BackgroundColor.ToAndroid()), 808 swipeButton.SetTextColor(textColor.ToAndroid()); 835 drawable.SetColorFilter(textColor.ToAndroid(), FilterMode.SrcAtop);
Android\Renderers\TableViewModelRenderer.cs (1)
141 bline.SetBackgroundColor(Application.AccentColor.ToAndroid());
Android\Shapes\ShapeRenderer.cs (9)
252 AColor fillColor = Colors.Transparent.ToAndroid(); 255 fillColor = solidColorBrush.Color.ToAndroid(); 284 AColor strokeColor = Graphics.Colors.Transparent.ToAndroid(); 287 strokeColor = solidColorBrush.Color.ToAndroid(); 509 colors[index] = linearGradientBrush.GradientStops[index].Color.ToAndroid(); 535 AColor centerColor = gradientStopsCount > 0 ? radialGradientBrush.GradientStops[0].Color.ToAndroid() : Colors.Transparent.ToAndroid(); 536 AColor edgeColor = gradientStopsCount > 0 ? radialGradientBrush.GradientStops[gradientStopsCount - 1].Color.ToAndroid() : Colors.Transparent.ToAndroid();
Android\TextColorSwitcher.cs (3)
48 int defaultDisabledColor = _defaultTextColors.GetColorForState(s_disabledColorState, color.ToAndroid()); 49 ColorStateListExtensions.CreateEditText(color.ToAndroid().ToArgb(), defaultDisabledColor); 53 var acolor = color.ToAndroid().ToArgb();
Android\VisualElementRenderer.cs (1)
391 SetBackgroundColor(Element.BackgroundColor.ToAndroid());