You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1 KiB

  1. using Android.Content;
  2. using Android.Graphics.Drawables;
  3. using GMCabsDriverAssistantSolution.CustomControls;
  4. using GMCabsDriverAssistantSolution.Platforms.Android.CustomRenderer;
  5. using Microsoft.Maui.Controls.Compatibility;
  6. using Microsoft.Maui.Controls.Compatibility.Platform.Android;
  7. using Microsoft.Maui.Controls.Platform;
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Threading.Tasks;
  13. [assembly: ExportRenderer(typeof(NoUnderlineEntry), typeof(NoUnderlineEntryRenderer))]
  14. namespace GMCabsDriverAssistantSolution.Platforms.Android.CustomRenderer
  15. {
  16. public class NoUnderlineEntryRenderer : EntryRenderer
  17. {
  18. public NoUnderlineEntryRenderer(Context context) : base(context)
  19. {
  20. AutoPackage = false;
  21. }
  22. protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
  23. {
  24. base.OnElementChanged(e);
  25. if (Control != null)
  26. {
  27. Control.Background = new ColorDrawable(global::Android.Graphics.Color.Transparent);
  28. }
  29. }
  30. }
  31. }