23 lines
562 B
C#
23 lines
562 B
C#
using Android.Widget;
|
|
using Bit.Droid.Effects;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Platform.Android;
|
|
|
|
[assembly: ExportEffect(typeof(RemoveFontPaddingEffect), nameof(RemoveFontPaddingEffect))]
|
|
namespace Bit.Droid.Effects
|
|
{
|
|
public class RemoveFontPaddingEffect : PlatformEffect
|
|
{
|
|
protected override void OnAttached()
|
|
{
|
|
if (Control is TextView textView)
|
|
{
|
|
textView.SetIncludeFontPadding(false);
|
|
}
|
|
}
|
|
|
|
protected override void OnDetached()
|
|
{
|
|
}
|
|
}
|
|
} |