mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
24 lines
686 B
C#
24 lines
686 B
C#
using System;
|
|
using System.ComponentModel;
|
|
using Android.Content;
|
|
using Bit.Android.Controls;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Platform.Android;
|
|
|
|
[assembly: ExportRenderer(typeof(SearchBar), typeof(CustomSearchBarRenderer))]
|
|
namespace Bit.Android.Controls
|
|
{
|
|
public class CustomSearchBarRenderer : SearchBarRenderer
|
|
{
|
|
public CustomSearchBarRenderer(Context context)
|
|
: base(context)
|
|
{ }
|
|
|
|
protected override void OnElementChanged(ElementChangedEventArgs<SearchBar> e)
|
|
{
|
|
base.OnElementChanged(e);
|
|
Control.SetPadding((int)global::Android.App.Application.Context.ToPixels(-8), 0, 0, 0);
|
|
}
|
|
}
|
|
}
|