BottomTabbedPage - Display tabs at the bottom on Android in Xamarin.Forms

Hi all,

We have created our custom page to make use of BottomNavigationView on Android for bottom tabs navigation.

We published our library public on GitHub and Nuget for everyone to use.

Plz use and contribute.

Cheers.

Tagged:

Posts

  • TotalTotal TWMember

    Hi, I tried to use BottomTabbedPage and I got a problem. The Tab Bar is still on top. And I can't access BottomTabbedRenderer. Could you please help to fix it, thanks.

    My code:
    `
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    using Xamarin.Forms;
    using Xamarin.Forms.Xaml;
    using Naxam.Controls.Forms;

    //using Naxam.Controls.Platform => Error

    namespace TabbedTest
    {
    [XamlCompilation(XamlCompilationOptions.Compile)]
    public partial class TestPage : BottomTabbedPage
    {
    public TestPage()
    {
    InitializeComponent();
    //BottomTabbedRenderer btr; => Error
    }
    }
    }
    `

  • tuyenvtuyenv VNUniversity ✭✭✭

    @Total,

    1. You aren't allowed to access BottomTabbedRenderer inside PCL. The nature of using PCL: no platform specific code.
    2. Plz follow my sample carefully and also my post on Medium here.

    If you check out our sample code, there are some settings for the renderer, so the renderer will work.

    It's a bit tricky, but at the recent version of Xamarin, we have to instantiate an instance of 3rd party renderer or have at least one access to it in the MainActivity, so the linker won't get it out.

    Cheers.

  • TotalTotal TWMember

    Hello again,
    Thanks for your answer.
    It really helped me to fix this problem and worked fine.

    Thx

Sign In or Register to comment.