Xamarin-OneMoreFabMenu 2.0.1

OneMoreFabMenu
Another floating action button menu with expand/collapse behavior.

Install-Package Xamarin-OneMoreFabMenu -Version 2.0.1
dotnet add package Xamarin-OneMoreFabMenu --version 2.0.1
<PackageReference Include="Xamarin-OneMoreFabMenu" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin-OneMoreFabMenu --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xamarin-OneMoreFabMenu, 2.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xamarin-OneMoreFabMenu as a Cake Addin
#addin nuget:?package=Xamarin-OneMoreFabMenu&version=2.0.1

// Install Xamarin-OneMoreFabMenu as a Cake Tool
#tool nuget:?package=Xamarin-OneMoreFabMenu&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

sponsor me

Basic example:

XML:

<com.dekoservidoni.omfm.OneMoreFabMenu
        android:id="@+id/fabMenu"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|end"
        app:content_options="@menu/omfm_content_options"
        app:color_main_button="@color/colorPrimaryDark"
        app:close_on_click="true"
        app:color_secondary_buttons="@color/colorPrimary"
        app:expanded_background_color="@color/colorGrayTrans"/>

Menu: omfm_content_options.xml

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">

    
    
    <item
        android:id="@+id/main_option"
        android:icon="@drawable/icon1"
        android:title=""/>

    

    <item
        android:id="@+id/option1"
        android:icon="@drawable/icon2"
        android:title="@string/options_1" />

    <item
        android:id="@+id/option2"
        android:icon="@drawable/icon3"
        android:title="@string/options_2" />

    <item
        android:id="@+id/option3"
        android:icon="@drawable/icon4"
        android:title="@string/options_3" />
</menu>

C#:

private OneMoreFabMenu FabButtonMenu { get; set; }

public partial class MainActivity : AppCompatActivity, OneMoreFabMenu.IOptionsClick
{
    protected override async void OnCreate(Bundle savedInstanceState)
    {
        base.OnCreate(savedInstanceState);
        FabButtonMenu = FindViewById<OneMoreFabMenu>(Resource.Id.fabMenu);
        FabButtonMenu.SetOptionsClick(this);
    }
}

public void OnOptionClick(Integer p0)
{
    switch (Convert.ToInt32(p0))
    {
        case Resource.Id.option1:
            break;
        case Resource.Id.option2:
            break;
        case Resource.Id.option3:
            break;
    }
}

sponsor me

Basic example:

XML:

<com.dekoservidoni.omfm.OneMoreFabMenu
        android:id="@+id/fabMenu"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|end"
        app:content_options="@menu/omfm_content_options"
        app:color_main_button="@color/colorPrimaryDark"
        app:close_on_click="true"
        app:color_secondary_buttons="@color/colorPrimary"
        app:expanded_background_color="@color/colorGrayTrans"/>

Menu: omfm_content_options.xml

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">

    
    
    <item
        android:id="@+id/main_option"
        android:icon="@drawable/icon1"
        android:title=""/>

    

    <item
        android:id="@+id/option1"
        android:icon="@drawable/icon2"
        android:title="@string/options_1" />

    <item
        android:id="@+id/option2"
        android:icon="@drawable/icon3"
        android:title="@string/options_2" />

    <item
        android:id="@+id/option3"
        android:icon="@drawable/icon4"
        android:title="@string/options_3" />
</menu>

C#:

private OneMoreFabMenu FabButtonMenu { get; set; }

public partial class MainActivity : AppCompatActivity, OneMoreFabMenu.IOptionsClick
{
    protected override async void OnCreate(Bundle savedInstanceState)
    {
        base.OnCreate(savedInstanceState);
        FabButtonMenu = FindViewById<OneMoreFabMenu>(Resource.Id.fabMenu);
        FabButtonMenu.SetOptionsClick(this);
    }
}

public void OnOptionClick(Integer p0)
{
    switch (Convert.ToInt32(p0))
    {
        case Resource.Id.option1:
            break;
        case Resource.Id.option2:
            break;
        case Resource.Id.option3:
            break;
    }
}

Release Notes

Added support to RLF.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.1 91 5/27/2021
2.0.0 226 7/24/2020
1.1.2 410 7/11/2019
1.1.1 237 6/26/2019