Introduction
Hello guys, this is my second part of the COVID-19 app. In this article, I have continued to the COVID – 19 App, in this app we create the remaining pages.
- Covid-19 Search Countries
- About us
- CovidTabbedPage
In this article, we design a Covid-19 Search Countries, About Us and a CovidTabbedPage.
Covid-19 Search Countries
In this Covid19 Search Countries page, we add one ListView and show the all the country COVID cases data Like INDIA and USA, and UAE.
CountryReport.xaml
- <?xml version="1.0" encoding="utf-8" ?>
- <ContentPage
- x:Class="Covid19.Views.CountryReport"
- xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:control="clr-namespace:Covid19.CustomControls"
- xmlns:d="http://xamarin.com/schemas/2014/forms/design"
- xmlns:local="clr-namespace:Covid19"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- BackgroundColor="White"
- mc:Ignorable="d">
- <ContentPage.Resources>
- <ContentView x:Key="BasicTemplate">
- <StackLayout>
- <Label
- Margin="10,25,10,10"
- FontAttributes="Bold"
- FontSize="18"
- HorizontalOptions="Fill"
- HorizontalTextAlignment="Center"
- Text="No items to display." />
- </StackLayout>
- </ContentView>
- <ContentView x:Key="AdvancedTemplate">
- <StackLayout>
- <Label
- Margin="10,25,10,10"
- FontFamily="OpenSansBold"
- FontSize="18"
- HorizontalOptions="Fill"
- HorizontalTextAlignment="Center"
- Text="No results matched your filter." />
- <Label
- FontAttributes="Italic"
- FontFamily="OpenSansRegular"
- FontSize="12"
- HorizontalOptions="Fill"
- HorizontalTextAlignment="Center"
- Text="Try a broader filter?" />
- </StackLayout>
- </ContentView>
-
- </ContentPage.Resources>
- <ContentPage.Content>
- <ScrollView>
- <Grid Padding="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="25" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Label
- Grid.Row="1"
- Grid.Column="0"
- Padding="20,5"
- FontFamily="OpenSansBold"
- FontSize="20"
- HorizontalOptions="StartAndExpand"
- Text="Covid-19 Search..."
- VerticalOptions="CenterAndExpand" />
- <StackLayout
- Grid.Row="2"
- Grid.Column="0"
- Padding="0"
- HorizontalOptions="FillAndExpand"
- Spacing="0"
- VerticalOptions="Center">
- <control:CustomShadowFrame
- Margin="{OnPlatform Android='20,0',
- iOS='0,0'}"
- Padding="0"
- BorderColor="White"
- CornerRadius="25"
- HasShadow="true"
- HeightRequest="150">
- <Image Aspect="AspectFill" Source="{local:ImageResource Covid19.Resources.lightstayhome.jpg}" />
- </control:CustomShadowFrame>
- </StackLayout>
- <Grid
- Grid.Row="3"
- Grid.Column="0"
- Padding="20,0"
- HorizontalOptions="FillAndExpand"
- VerticalOptions="FillAndExpand">
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="1" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Entry
- x:Name="searchBar"
- Grid.Row="0"
- Grid.Column="0"
- Margin="45,0,0,0"
- FontFamily="OpenSansRegular"
- FontSize="Small"
- HeightRequest="35"
- HorizontalOptions="FillAndExpand"
- Placeholder="Search Country"
- PlaceholderColor="#2A73BF"
- TextChanged="Entry_TextChanged"
- TextColor="#2A73BF" />
- <Image
- Grid.Row="0"
- Grid.Column="0"
- Aspect="AspectFit"
- HeightRequest="24"
- HorizontalOptions="Start"
- Source="{local:ImageResource Covid19.Resources.search.png}"
- VerticalOptions="Center"
- WidthRequest="24" />
- <BoxView
- Grid.Row="1"
- Grid.Column="0"
- HorizontalOptions="FillAndExpand"
- Color="LightGray" />
- </Grid>
- <CollectionView
- x:Name="collectionView"
- Grid.Row="4"
- Grid.Column="0"
- EmptyView="{StaticResource AdvancedTemplate}"
- HorizontalOptions="FillAndExpand"
- ItemsSource="{Binding SearchCountry}"
- VerticalOptions="FillAndExpand">
- <CollectionView.ItemTemplate>
- <DataTemplate>
- <StackLayout Padding="20,10">
- <Frame
- Padding="5"
- BorderColor="LightGray"
- CornerRadius="10"
- HasShadow="True">
- <Grid
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="1"
- Padding="10,10"
- HorizontalOptions="FillAndExpand"
- RowSpacing="0"
- VerticalOptions="FillAndExpand">
- <Grid.RowDefinitions>
- <RowDefinition Height="0.5*" />
- <RowDefinition Height="0.5*" />
- <!--<RowDefinition Height="0.3*" />-->
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.8*" />
- <ColumnDefinition Width="0.2*" />
- </Grid.ColumnDefinitions>
- <Label
- Grid.Row="0"
- Grid.Column="0"
- FontFamily="OpenSansRegular"
- FontSize="20"
- Text="{Binding country}"
- TextColor="Black"
- VerticalTextAlignment="End" />
- <Label
- Grid.Row="1"
- Grid.Column="0"
- FontFamily="OpenSansBold"
- FontSize="20"
- Text="{Binding cases, StringFormat='{0:N0}'}"
- TextColor="Black"
- VerticalOptions="Start"
- VerticalTextAlignment="Start" />
- <ImageButton
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="1"
- Aspect="Fill"
- BackgroundColor="White"
- HeightRequest="42"
- HorizontalOptions="CenterAndExpand"
- IsEnabled="False"
- Source="{Binding country, Converter={StaticResource Flagconvertor}}"
- VerticalOptions="CenterAndExpand"
- WidthRequest="42" />
- </Grid>
- </Frame>
- </StackLayout>
- </DataTemplate>
- </CollectionView.ItemTemplate>
- </CollectionView>
- </Grid>
- </ScrollView>
- </ContentPage.Content>
- </ContentPage>
Now we add the Entry_TextChanged event for the searching a country according the text characters. Also.,the Binding viewmodel, which is defined in previous article.
- private void Entry_TextChanged(object sender, TextChangedEventArgs e)
- {
- if (string.IsNullOrEmpty(e.NewTextValue))
- collectionView.ItemsSource = App.AppSetup.GloalViewModel.AllCountry;
- else
- collectionView.ItemsSource = App.AppSetup.GloalViewModel.AllCountry.Where(x => x.country.ToLower().Contains(e.NewTextValue.ToLower())).ToList();
- }
About Us
This is the about page and in this, we include the team member of the creating of the app.
AboutReport.xaml
- <?xml version="1.0" encoding="utf-8" ?>
- <ContentPage
- x:Class="Covid19.Views.AboutReport"
- xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:control="clr-namespace:Covid19.CustomControls"
- xmlns:d="http://xamarin.com/schemas/2014/forms/design"
- xmlns:helper="clr-namespace:Covid19.Helper"
- xmlns:local="clr-namespace:Covid19"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:parallax="clr-namespace:Covid19.CustomCells"
- xmlns:viewmodel="clr-namespace:Covid19.ViewModel"
- BackgroundColor="{DynamicResource Gray-White}"
- NavigationPage.HasNavigationBar="False"
- mc:Ignorable="d">
- <ContentPage.Resources>
- <ResourceDictionary>
- <Style x:Key="VersionLabelStyle" TargetType="Label">
- <Setter Property="TextColor" Value="{DynamicResource Gray-700}" />
- <Setter Property="FontFamily" Value="OpenSansRegular" />
- <Setter Property="FontSize" Value="12" />
- <Setter Property="LineHeight" Value="{OnPlatform Default=1.25, iOS=-1}" />
- </Style>
- <!-- Style for header label -->
- <Style x:Key="HeaderLabelStyle" TargetType="Label">
- <Setter Property="TextColor" Value="LightGray" />
- <Setter Property="FontFamily" Value="{DynamicResource Gray-900}" />
- <Setter Property="FontSize" Value="16" />
- <Setter Property="HorizontalTextAlignment" Value="Center" />
- <Setter Property="LineHeight" Value="1.25" />
- <Setter Property="Margin" Value="0,16,0,8" />
- </Style>
- <!-- Style for description label -->
- <Style x:Key="DescriptionLabelStyle" TargetType="Label">
- <Setter Property="TextColor" Value="{DynamicResource Gray-700}" />
- <Setter Property="FontFamily" Value="OpenSansRegular" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="HorizontalTextAlignment" Value="Start" />
- <Setter Property="LineHeight" Value="{OnPlatform Default=1.25}" />
- </Style>
- <!-- Style for Images -->
- <Style x:Key="AboutUsImageStyle" TargetType="Image">
- <Setter Property="HeightRequest" Value="64" />
- <Setter Property="WidthRequest" Value="64" />
- </Style>
- </ResourceDictionary>
- </ContentPage.Resources>
-
- <ContentPage.BindingContext>
- <viewmodel:AboutViewModel />
- </ContentPage.BindingContext>
- <ContentPage.Content>
- <parallax:ParallaxView
- x:Name="MainParallax"
- BodyMargin="0,150,0,0"
- HeaderScrollSpeed="2">
- <parallax:ParallaxView.HeaderContent>
- <ContentView HeightRequest="253">
- <Image
- Aspect="Fill"
- BackgroundColor="{DynamicResource Gray-200}"
- HorizontalOptions="FillAndExpand"
- VerticalOptions="StartAndExpand">
- <Image.Source>
- <UriImageSource
- CacheValidity="14"
- CachingEnabled="true"
- Uri="{Binding AboutTeamModel.CardsTopImage}" />
- </Image.Source>
- </Image>
- </ContentView>
- </parallax:ParallaxView.HeaderContent>
- <parallax:ParallaxView.BodyContent>
- <Frame
- Margin="0,0,0,-25"
- BackgroundColor="#ffffff"
- CornerRadius="25"
- HorizontalOptions="FillAndExpand"
- VerticalOptions="FillAndExpand">
- <Grid
- Padding="0"
- HorizontalOptions="FillAndExpand"
- VerticalOptions="FillAndExpand">
- <CollectionView
- x:Name="aboutlistview"
- Margin="10"
- HorizontalOptions="CenterAndExpand"
- ItemsSource="{Binding AboutTeamModel.AboutteamData}"
- SelectedItem="{Binding ItemSelectedCommand}">
- <!-- Header -->
- <CollectionView.Header>
- <Grid HorizontalOptions="Center" VerticalOptions="Center">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="15" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Label
- Grid.Row="0"
- Grid.Column="0"
- FontFamily="OpenSansBold"
- HorizontalOptions="Center"
- Style="{StaticResource DescriptionLabelStyle}"
- Text="About Us"
- TextColor="{DynamicResource Gray-900}"
- VerticalOptions="End" />
- <!--<Label
- Grid.Row="1"
- Grid.Column="0"
- HorizontalOptions="Center"
- Style="{StaticResource VersionLabelStyle}"
- Text="Version 1.0" />-->
- <Label
- Grid.Row="1"
- Grid.Column="0"
- HorizontalOptions="Center"
- Style="{StaticResource VersionLabelStyle}"
- Text="{Binding About}" />
-
- </Grid>
- </CollectionView.Header>
- <!-- List -->
- <CollectionView.ItemsLayout>
- <GridItemsLayout
- HorizontalItemSpacing="10"
- Orientation="Vertical"
- Span="{OnIdiom Desktop=2,
- Phone=1,
- Tablet=2}"
- VerticalItemSpacing="10" />
- </CollectionView.ItemsLayout>
- <CollectionView.ItemTemplate>
- <DataTemplate>
- <Frame
- BackgroundColor="White"
- BorderColor="#CCD5F0"
- CornerRadius="25"
- HasShadow="true"
- Visual="Material">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="1" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <StackLayout
- Grid.Row="0"
- Grid.Column="0"
- Padding="0"
- HorizontalOptions="Fill"
- Spacing="0"
- VerticalOptions="CenterAndExpand">
- <!-- Profile image -->
- <ImageButton
- BackgroundColor="LightGray"
- BorderWidth="0"
- CornerRadius="32"
- HorizontalOptions="Center"
- IsEnabled="False"
- Source="{Binding ImageUrl}"
- Style="{StaticResource AboutUsImageStyle}"
- VerticalOptions="Center" />
-
- <!-- Employee name -->
- <Label
- FontFamily="OpenSansBold"
- HorizontalOptions="Center"
- Style="{StaticResource DescriptionLabelStyle}"
- Text="{Binding FirstName}"
- TextColor="{DynamicResource Gray-900}" />
-
- <!-- Designation -->
- <Label
- FontFamily="OpenSansBold"
- HorizontalOptions="Center"
- HorizontalTextAlignment="Center"
- Style="{StaticResource VersionLabelStyle}"
- Text="{Binding Designation}" />
- <!-- Description -->
- <Label
- HorizontalOptions="Center"
- HorizontalTextAlignment="Center"
- Style="{StaticResource VersionLabelStyle}"
- Text="{Binding Description}" />
-
- </StackLayout>
- <BoxView
- Grid.Row="1"
- Grid.Column="0"
- VerticalOptions="FillAndExpand"
- Color="LightGray" />
- <Grid
- Grid.Row="2"
- Grid.Column="0"
- Padding="0"
- HorizontalOptions="CenterAndExpand"
- VerticalOptions="CenterAndExpand">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="45" />
- <ColumnDefinition Width="45" />
- <ColumnDefinition Width="45" />
- <ColumnDefinition Width="45" />
- <ColumnDefinition Width="45" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Button
- Grid.Row="0"
- Grid.Column="0"
- BackgroundColor="White"
- Command="{Binding Path=BindingContext.SocialCommand, Source={x:Reference aboutlistview}}"
- CommandParameter="{Binding linkSocial[0].InstaLink}"
- CornerRadius="25"
- HorizontalOptions="EndAndExpand"
- ImageSource="{FontImage FontFamily=FontAwesome,
- Glyph={x:Static helper:IconFont.Instagram},
- Size=30,
- Color='#E74265'}" />
- <Button
- Grid.Row="0"
- Grid.Column="1"
- BackgroundColor="White"
- Command="{Binding Path=BindingContext.SocialCommand, Source={x:Reference aboutlistview}}"
- CommandParameter="{Binding linkSocial[0].BloggerLink}"
- CornerRadius="25"
- ImageSource="{FontImage FontFamily=FontAwesome,
- Glyph={x:Static helper:IconFont.Blogger},
- Size=30,
- Color=Orange}" />
- <Button
- Grid.Row="0"
- Grid.Column="2"
- BackgroundColor="White"
- Command="{Binding Path=BindingContext.SocialCommand, Source={x:Reference aboutlistview}}"
- CommandParameter="{Binding linkSocial[0].LinkedLink}"
- CornerRadius="25"
- ImageSource="{FontImage FontFamily=FontAwesome,
- Glyph={x:Static helper:IconFont.Linkedin},
- Size=30,
- Color='#007BB6'}" />
- <Button
- Grid.Row="0"
- Grid.Column="3"
- BackgroundColor="White"
- Command="{Binding Path=BindingContext.SocialCommand, Source={x:Reference aboutlistview}}"
- CommandParameter="{Binding linkSocial[0].YtLink}"
- CornerRadius="25"
- ImageSource="{FontImage FontFamily=FontAwesome,
- Glyph={x:Static helper:IconFont.Youtube},
- Size=30,
- Color='#C51614'}" />
- <Button
- Grid.Row="0"
- Grid.Column="4"
- BackgroundColor="White"
- Command="{Binding Path=BindingContext.SocialCommand, Source={x:Reference aboutlistview}}"
- CommandParameter="{Binding linkSocial[0].Csharpcorner}"
- CornerRadius="25"
- ImageSource="{FontImage FontFamily=FontAwesome,
- Glyph={x:Static helper:IconFont.LanguageCsharp},
- Size=30,
- Color='#9A4993'}" />
- </Grid>
- </Grid>
- </Frame>
- </DataTemplate>
- </CollectionView.ItemTemplate>
- <CollectionView.Footer>
- <Grid
- HorizontalOptions="Center"
- IsVisible="false"
- VerticalOptions="Center">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="100" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Button
- Grid.Row="0"
- Grid.Column="0"
- BackgroundColor="White"
- CornerRadius="25"
- FontSize="10"
- ImageSource="{FontImage FontFamily=FontAwesome,
- Glyph={x:Static helper:IconFont.Cellphone},
- Size=30,
- Color='#4C79FF'}"
- Text="{Binding MobIfo.DeviceModel}"
- TextColor="{DynamicResource Gray-700}" />
-
- <Button
- Grid.Row="0"
- Grid.Column="1"
- BackgroundColor="White"
- CornerRadius="25"
- FontSize="10"
- ImageSource="{FontImage FontFamily=FontAwesome,
- Glyph={x:Static helper:IconFont.Android},
- Size=30,
- Color='#4C79FF'}"
- Text="{Binding MobIfo.DevicePlatform}" />
- <Button
- Grid.Row="0"
- Grid.Column="2"
- BackgroundColor="White"
- CornerRadius="25"
- FontSize="10"
- ImageSource="{FontImage FontFamily=FontAwesome,
- Glyph={x:Static helper:IconFont.CellphoneAndroid},
- Size=30,
- Color='#4C79FF'}"
- Text="{Binding MobIfo.DeviceType}" />
- </Grid>
- </CollectionView.Footer>
- </CollectionView>
- </Grid>
- </Frame>
- </parallax:ParallaxView.BodyContent>
- </parallax:ParallaxView>
- </ContentPage.Content>
- </ContentPage>
Now we are creating a model(AboutTeamModel) and ViewModel(AboutViewModel)
AboutViewModel.cs
- public class AboutViewModel:BaseViewModel
- {
- public AboutViewModel() {
- try
- {
- AboutTeamModel = new AboutTeamModel() {
- CardsTopImage = App.BaseImageUrl + "Mask.png",
- AboutteamData =new List<Aboutteam>() {
- new Aboutteam() {
- linkSocial = new List<Sociallinktask>() {
- new Sociallinktask() {
- Csharpcorner = "https://www.c-sharpcorner.com/members/xamarin-skills",
- YtLink = "https://www.youtube.com/channel/UCmcWO6GbETogq_ULHf1PX2A",
- LinkedLink = "linkedin://profile/company/sumit-sisodia-5a5868a4/",
- BloggerLink= "https://xamarinskills.blogspot.com/" ,
- InstaLink = "instagram://user?username=sumit_sisodia77",
- }
- },
- City = "Indore",
- FirstName = "Sumit",
- LastName = "Sisodia",
- Designation = "Xamarin Developer",
- Description="I have 3+ year of experience in hybrid mobile development using xamarin.forms with C#. He is enthusiastic and take an interest in developing new things. He above in watching movies, He a good blogger, generally wrote blogs on xamarin forms.",
- ImageUrl="https://csharpcorner-mindcrackerinc.netdna-ssl.com/UploadFile/AuthorImage/9cd3bf20200522093419.jpg"
- },
- new Aboutteam() {
- linkSocial = new List<Sociallinktask>() {
- new Sociallinktask() {
- InstaLink = "instagram://user?username=sagziie",
- BloggerLink= "https://www.behance.net/sagzie",
- YtLink = "",
- Csharpcorner = "",
- LinkedLink = "" ,
- }
- },
- City = "Ahemdabad",
- FirstName = "Sagar",
- LastName = "Panchal",
- Designation = "UI/XD Designer" ,
- Description = "I have 5+ year of experience in UI/UX development using xamarin.forms with C#. He is enthusiastic and take an interest in developing new things. He above in watching movies.",
- ImageUrl="https://mir-s3-cdn-cf.behance.net/user/115/b6478f18287823.5676855c9a3df.jpg"
- }
- }
- };
-
- MobIfo = new DeviceInformation();
- }
- catch (Exception ex)
- {
- }
- }
-
- private string about= "During the COVID pandemic situation all over the world, we get an idea to develop an app which has tracking record of the cases by counties and also show safety measures aims.";
- public string About
- {
- get { return about; }
- set
- {
- about = value;
- RaisePropertyChanged(() =>About);
- }
- }
-
-
- private DeviceInformation mobinfo ;
- public DeviceInformation MobIfo
- {
- get { return mobinfo; }
- set { mobinfo = value; RaisePropertyChanged(() => MobIfo); }
- }
-
- private AboutTeamModel aboutteammodel;
- public AboutTeamModel AboutTeamModel
- {
- get { return aboutteammodel; }
- set
- {
- aboutteammodel = value;
- RaisePropertyChanged(() => AboutTeamModel);
- }
- }
-
- public ICommand SocialCommand
- {
- get
- {
- return new Command<string>((x) => SocialCommandExecution(x));
- }
- }
-
- public void SocialCommandExecution(string x)
- {
- if (string.IsNullOrEmpty(x))
- UserDialogs.Instance.Alert("We have no url", "Alert", "OK");
- else
- try
- {
- Device.OpenUri(new Uri(x));
- }
- catch (Exception ex)
- { }
- }
- }
- }
AboutTeamModel.cs
- public partial class AboutTeamModel
- {
- public string CardsTopImage { get; set; }
- public List<Aboutteam> AboutteamData { get; set; }
- }
-
- public partial class Aboutteam
- {
- public string FirstName { get; set; }
- public string LastName { get; set; }
- public string City { get; set; }
- public string Designation { get; set; }
- public string ImageUrl { get; set; }
- public string Description { get; set; }
- public List<Sociallinktask> linkSocial { get; set; }
- }
-
- public partial class Sociallinktask
- {
- public string LinkedLink { get; set; }
- public string YtLink { get; set; }
- public string InstaLink { get; set; }
- public string Csharpcorner { get; set; }
- public string BloggerLink { get; set; }
- }
CovidTabbedPage
In this CovidTabbedPage, we have to add the following pages Like COVID Global, COVID Home, COVID-19 Country search, and an About Us Page. Below, I have written the CovidTabbedPage.
- <?xml version="1.0" encoding="utf-8" ?>
- <TabbedPage
- x:Class="Covid19.Views.CovidTabbedPage"
- xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
- xmlns:d="http://xamarin.com/schemas/2014/forms/design"
- xmlns:helper="clr-namespace:Covid19.Helper"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:views="clr-namespace:Covid19.Views"
- android:TabbedPage.ToolbarPlacement="Bottom"
- BarBackgroundColor="White"
- BarTextColor="#4C79FF"
- SelectedTabColor="#4C79FF"
- UnselectedTabColor="#999FBF"
- mc:Ignorable="d">
- <views:GlobalReport IconImageSource="{FontImage FontFamily=FontAwesome, Glyph={x:Static helper:IconFont.Earth}, Size=30, Color=Orange}" />
- <views:HomeReport IconImageSource="{FontImage FontFamily=FontAwesome, Glyph={x:Static helper:IconFont.Home}, Size=30, Color=Orange}" />
- <views:CountryReport IconImageSource="{FontImage FontFamily=FontAwesome, Glyph={x:Static helper:IconFont.Flag}, Size=30, Color=Orange}" />
- <views:AboutReport IconImageSource="{FontImage FontFamily=FontAwesome, Glyph={x:Static helper:IconFont.Face}, Size=30, Color=Orange}" />
-
- </TabbedPage>
For adding awesome font in Xamarin forms
click here.