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 answers
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
- Jetpack Compose how to reverse edge-to-edge when leaving composition
- ViewCompat.setOnApplyWindowInsetsListener not dispatching on MotionLayout I need to get the system toolbar height
- failed for task ':app:extractDeepLinksFreeDebug', Content is not allowed in prolog. How to locate the wrong file?
- Dark status bar on android 30 and above won't disappear
- Status bar color change when Collapsing toolbar Collapsed and Expanded
- How can I use SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN with SOFT_INPUT_ADJUST_RESIZE
- BottomNavigationView height issue when changing status bar transparency in Android app material 3
- StatusBar overlaps app's toolbar and the toolbar is gone on Android API 30+
- How to use "QAndroidApplication::runOnAndroidMainThread" to change color of status- and navigation bar?
- Drawing content over safearea in material3 with jetpack compose does not work
- We are using a android SDK for payment.That sdk changes colorPrimaryDark to red. After payment status bar remains red instead of turn back to blue
- Expo React Native StatusBar hidden but still showing whitespace
- Keyboard and Statusbar/Navbar on Android have a issue with RN-reanimated useKeyboardAnimated
- How to get status bar height in overlay window context for Android?
- Android API >= 30: Top bar always visible after double scrolling if app pinned
Related Questions in IOS-STATUSBAR
- Understanding Different Location Icons in iOS App Background Usage
- Is it possible to get mobile data string ie, 4G, E, 3G, 5G etc. from status bar (NSStatusBar, UIStatusBar) in xamarin / Objective C / swift
- Why does my status bar disappear after a couple of seconds Xcode?
- How to change iOS status bar color per view without SceneDelegate using SwiftUI
- How can I change the color of the status bar? (Android and IOS)
- StatusBar Style updates with some delay
- Xamarin Forms - Change Statusbar Color crossplatform
- Prevent View Controller from extending under status bar
- Safe area constrained views get magnified with status bar toggled hidden/unhidden when navigating between UIViewControllers in iOS
- Status bar overlays webview on iOS with Capacitor
- Incorrect preferredStatusBarStyle when controller animated transitioning is canceled
- What should be the best way to change StatusBar background colour and preferredStatusBarStyle?
- React-Native iOS Status Bar
- I am not able to hide statusBar when I try to show a view
- UINavigationBar status bar color issue on iPhone X
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?
Popular Tags
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)

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 .