Open tahirmehraj opened 6 years ago
add if (Device.RuntimePlatform == Device.Android) NavigationPage.SetHasNavigationBar(this, false); to your view
@maherzaidoune
I tried this but unfortunately, Its still there.
use Theme.AppCompat.Light.NoActionBar as your theme
@maherzaidoune : Thanks it worked. Can you please tell me why doesn't the tab color and badge count work in ios although it works smoothly in the android
Badges are working in iOS. It worked for me.
Please see below:
Please add custom renderer in iOS. And it will work.
"using System; using BottomBar.XamarinForms; using Xamarin.Forms; using Xamarin.Forms.Platform.iOS; using SchoolApp.iOS; using System.ComponentModel;
[assembly: ExportRenderer(typeof(BottomBarPage), typeof(BottomBarPageRenderer))] namespace SchoolApp.iOS { class BottomBarPageRenderer : TabbedRenderer {
protected override void OnElementChanged(VisualElementChangedEventArgs e) { base.OnElementChanged(e);
if (e.NewElement != null)
{
BottomBarPage bottomBarPage = e.NewElement as BottomBarPage;
AddPropertyChangedHandlersForPages();
}
}
void AddPropertyChangedHandlersForPages() { BottomBarPage bottomBarPage = Element as BottomBarPage; foreach (var page in bottomBarPage.Children) { page.PropertyChanged += OnPagePropertyChanged; UpdateTabBadge(page); } } public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated);
BottomBarPage bottomBarPage = Element as BottomBarPage;
foreach (var page in bottomBarPage.Children)
{
UpdateTabBadge(page);
}
}
void OnPagePropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == BottomBarPageExtensions.BadgeCountProperty.PropertyName) { UpdateTabBadge((Page)sender); } } private void UpdateTabBadge(Page page) { if (TabBar != null && TabBar.Items != null) { var badgeCount = BottomBarPageExtensions.GetBadgeCount(page); var tabIndex = Tabbed.Children.IndexOf(page); TabBar.Items[tabIndex].BadgeValue = (badgeCount == 0 ? null : badgeCount.ToString()); } } } } "
Can you tell me , how can we remove that blue bar in the top? Attaching the screenshots...![scr](https://user-images.githubusercontent.com/39102228/39780204-2ee207c2-5329-11e8-8d56-c408d1424ed7.jpg)