mirror of
https://github.com/bitwarden/android.git
synced 2024-12-28 11:58:30 +03:00
26 lines
701 B
C#
26 lines
701 B
C#
|
using Android.Support.Design.BottomNavigation;
|
|||
|
using Android.Support.Design.Widget;
|
|||
|
using Android.Views;
|
|||
|
using Android.Widget;
|
|||
|
using Bit.Droid.Effects;
|
|||
|
using Xamarin.Forms;
|
|||
|
using Xamarin.Forms.Platform.Android;
|
|||
|
|
|||
|
[assembly: ExportEffect(typeof(FixedSizeEffect), "FixedSizeEffect")]
|
|||
|
namespace Bit.Droid.Effects
|
|||
|
{
|
|||
|
public class FixedSizeEffect : PlatformEffect
|
|||
|
{
|
|||
|
protected override void OnAttached()
|
|||
|
{
|
|||
|
if(Element is Label label && Control is TextView textView)
|
|||
|
{
|
|||
|
textView.SetTextSize(Android.Util.ComplexUnitType.Pt, (float)label.FontSize);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
protected override void OnDetached()
|
|||
|
{
|
|||
|
}
|
|||
|
}
|
|||
|
}
|