MohamedAbdelwahab.FloatingTabBar.Android 1.0.0

dotnet add package MohamedAbdelwahab.FloatingTabBar.Android --version 1.0.0
                    
NuGet\Install-Package MohamedAbdelwahab.FloatingTabBar.Android -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MohamedAbdelwahab.FloatingTabBar.Android" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MohamedAbdelwahab.FloatingTabBar.Android" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MohamedAbdelwahab.FloatingTabBar.Android" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MohamedAbdelwahab.FloatingTabBar.Android --version 1.0.0
                    
#r "nuget: MohamedAbdelwahab.FloatingTabBar.Android, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MohamedAbdelwahab.FloatingTabBar.Android@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MohamedAbdelwahab.FloatingTabBar.Android&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MohamedAbdelwahab.FloatingTabBar.Android&version=1.0.0
                    
Install as a Cake Tool

MauiFloatingTabBar.Android

Reusable NuGet package for adding an Android floating Shell tab bar to another .NET MAUI app.

Repository: https://github.com/mohamed-Abd-el-wahab/MauiFloatingTabBar.Android

Folder layout

MauiFloatingTabBar.Android/
  Platforms/
    Android/
      Resources/
        values/
          styles.xml
      TabBar/
        FloatingShellTabBar.cs
  snippets/
    MainActivity.cs.snippet
    MauiProgram.cs.snippet

Build the package

dotnet build MauiFloatingTabBar.Android/MauiFloatingTabBar.Android.csproj -c Release

The .nupkg is written to:

LocalPackages

Consume in another app

  1. Add reusable/LocalPackages as a local NuGet source (or install from nuget.org).
  2. Add the package only for Android.
  3. Apply the snippets/MainActivity.cs.snippet change.
  4. Apply the snippets/MauiProgram.cs.snippet change.

Example csproj:

<ItemGroup Condition="'$(TargetFramework)' == 'net10.0-android'">
  <PackageReference Include="MohamedAbdelwahab.FloatingTabBar.Android" Version="1.0.0" />
</ItemGroup>

Required result

  • The app keeps @style/Maui.SplashTheme on MainActivity
  • MainActivity.OnCreate() calls SetTheme(Resource.Style.FloatingShellTabsMaterialTheme); before base.OnCreate(...)
  • MauiProgram calls builder.UseFloatingShellTabBar() on Android

Optional customization

Inside FloatingShellTabBar.cs:

  • BackgroundColorHex
  • SelectedItemBackgroundColorHex
  • SelectedColorHex
  • UnselectedColorHex
  • spacing, radius, and icon size options

Example:

#if ANDROID
builder.UseFloatingShellTabBar(options =>
{
    options.BackgroundColorHex = "#FFFFFF";
    options.SelectedItemBackgroundColorHex = "#F3F4F6";
    options.SelectedColorHex = "#111827";
    options.UnselectedColorHex = "#9CA3AF";
});
#endif

What the package includes

  • The MauiFloatingTabBar.Android assembly
  • A transitive Android resource file that adds FloatingShellTabsMaterialTheme

Notes

  • This package is Android-only.
  • Reference it only for the Android target in multi-target MAUI apps.
  • It expects the app to use Shell with a TabBar.
Product Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 121 4/27/2026