I have a xamarin forms application and I have been able to change the navigationbar color. How can I change the statusbar color crossplatform? In the image below you can see the green navigationpagebar background color. Above that it's blue, I want to change the color of that. How can I achieve this crossplatform in xamarin forms?
Xamarin Forms - Change Statusbar Color crossplatform
240 Views Asked by M Yil At
2
There are 2 best solutions below
0
petrolhead_13
On
To my knowledge you need to set the statusbar color on every platform separatly. There are alot of questions like this here on StackOverflow and Google that can help you with that.
For Android:
check your styles.xml in Resources -> values
look for something like <item name="android:statusBarColor">#000000</item> to set the color
For iOS:
in your AppDelegate.cs look for the FinishedLaunsching-Method.
You can change the Style with UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.DarkContent, false);
Related Questions in XAMARIN.FORMS
- Playing local recorded video
- NavbarAnimation.Maui With TabbedPage
- Why does my LINQ query in Xamarin.Forms show less than expected content?
- Not showing Created folder in My App directory MAUI
- IOS Release version showing error "PlatformNotSupported" because of PCLCrypto.SymmetricKeyAlgorithmProvider.GetAlgorithm()
- The type was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built
- Heart shaped image clip - rotate/scale a Geometry object
- Printing with Xam.Plugin.Bluetooth
- Unable to open another app from within Xamarin Forms Android app
- XamlC error XFC0000 : Cannot resolve type "Popup" in my xct:popup xaml file
- .NET MAUI TapGesture Command not working in CollectionView
- Xamarin android Could not receive the push notification on OnMessageReceived while swipe away app
- how to avoid silence while playing audio file in xmarin forms media player
- Net Maui Property FlexLayout.Shrink does not work as expected
- Xamarin android emulate usb PC Keyboard
Related Questions in BACKGROUND-COLOR
- Mixed color rendering in a JTable
- Get correct background color for merged cells in xlsx file
- Changing the color of a parent div to the color of active child element on click
- i've styled my hr tag but it doesn't work, what should i do?
- Background gradient 100% height, not working on mobile
- Can't get "background-color" property from item using printThis library
- Changing facecolor with matplotlib widgets
- How to change option background color on hover
- Powershell: Get the background color of the Windows Terminal
- trying to set up random backgroundcolors with eventlistener whilst hovering over grid-cells with js
- Change div's background color to random with mouseover and keep divs squre and flex within a container
- Colour a binary image in matlab?
- How to change Axes background color into transparant in matplotlib
- How to change the background of PrimeNG's p-card component after ngAfterViewInit?
- Changing Cell Color Using Worksheet_SelectionChange and a Module
Related Questions in ANDROID-STATUSBAR
- Using "window Translucent Status = true" and want to display Text View value just after action bar
- Android design library 22.2.0 status bar semi transparent dark primary with the content behind the status bar
- Synchronize statusbar hide with toolbar
- EditText shows the status bar, or causes content above to move instead of resize
- How to Programmatically close the notification tray
- When in multi-window mode, Window height does not include status bar height
- How can I make the status bar go back up after being pulled down on an android app?
- Immersive fullscreen not hiding actionbar and statusbar
- Android full screen navigation bar transparency bleeds onto navigation view
- Android - overlay screen including status bar content
- the status bar changes it's color to black inside fullscreen dialog fragment android
- Android DrawerLayout (with NavigationView) behind status bar
- Transparent Status bar android
- XamarinForm : Android : Statusbar overlap contentpage
- android:windowLightStatusBar TRUE not working
Related Questions in IOS-STATUSBAR
- Is it possible to get mobile data string ie, 4G, E, 3G, 5G etc. from status bar (NSStatusBar, UIStatusBar) in xamarin / Objective C / swift
- How to change iOS status bar color per view without SceneDelegate using SwiftUI
- React-Native iOS Status Bar
- Swift 2.3 to Swift 3.1 Migration - EZSwipeViewController beneath StatusBar
- Incorrect preferredStatusBarStyle when controller animated transitioning is canceled
- Why does my status bar disappear after a couple of seconds Xcode?
- How can I change the color of the status bar? (Android and IOS)
- Phonegap/Cordova iOS Statusbar Back Button Displayed - Unexpected Behavior
- UINavigationBar status bar color issue on iPhone X
- I am not able to hide statusBar when I try to show a view
- Status bar overlays webview on iOS with Capacitor
- Prevent View Controller from extending under status bar
- Xamarin Forms - Change Statusbar Color crossplatform
- StatusBar Style updates with some delay
- Different color for navigation bar and status bar
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

You could use DependencyService .
in share project , define the interface
in Android
Firstly , install the plugin CurrentActivity from nuegt , check https://github.com/jamesmontemagno/CurrentActivityPlugin
in iOS
Now invoked the line as you want .