mirror of
https://github.com/bitwarden/mobile.git
synced 2024-06-25 10:26:02 +02:00
31 lines
873 B
C#
31 lines
873 B
C#
|
using Android.Support.Design.BottomNavigation;
|
|||
|
using Android.Support.Design.Widget;
|
|||
|
using Android.Views;
|
|||
|
using Bit.Droid.Effects;
|
|||
|
using Xamarin.Forms;
|
|||
|
using Xamarin.Forms.Platform.Android;
|
|||
|
|
|||
|
[assembly: ResolutionGroupName("Bitwarden")]
|
|||
|
[assembly: ExportEffect(typeof(TabBarEffect), "TabBarEffect")]
|
|||
|
namespace Bit.Droid.Effects
|
|||
|
{
|
|||
|
public class TabBarEffect : PlatformEffect
|
|||
|
{
|
|||
|
protected override void OnAttached()
|
|||
|
{
|
|||
|
if(!(Container.GetChildAt(0) is ViewGroup layout))
|
|||
|
{
|
|||
|
return;
|
|||
|
}
|
|||
|
if(!(layout.GetChildAt(1) is BottomNavigationView bottomNavigationView))
|
|||
|
{
|
|||
|
return;
|
|||
|
}
|
|||
|
bottomNavigationView.LabelVisibilityMode = LabelVisibilityMode.LabelVisibilityLabeled;
|
|||
|
}
|
|||
|
|
|||
|
protected override void OnDetached()
|
|||
|
{
|
|||
|
}
|
|||
|
}
|
|||
|
}
|