How do I change bottom tabs background color

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


How do I change bottom tabs background color



I am working on Xamarin.Forms. I have bottom tabs in my android project. Tabs are showing default background color something light gray. I need to change tabs background color to my preferred color. But I am not able to do so.
The code below I am using


Xamarin.Forms



MainPage.xaml file


<?xml version="1.0" encoding="utf-8"?>
<MyTabbedPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:edTheSIS"
x:Class="edTheSIS.ParentDashboard">
<local:DairyTabPage Icon="icon1"></local:DairyTabPage>
<local:MykidTabPage Icon="icon2" ></local:MykidTab>
<local:EventsPage Icon="icon3"></local:Events>
<local:AboutPage Icon="icon4"></local:About>
</MyTabbedPage>



MyTabbedPage.cs file


public class MyTabbedPage : Xamarin.Forms.TabbedPage
{
public MyTabbedPage()
{
On<Xamarin.Forms.PlatformConfiguration.Android>().SetToolbarPlacement(ToolbarPlacement.Bottom);
}
}



Output I am getting screenshot:



enter image description here









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results