Dynamic Status Bar Color (iOS & Android) in Xamarin/Xamarin.Forms

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

ความคิดเห็น • 45

  • @alexlanders781
    @alexlanders781 3 ปีที่แล้ว +2

    7:07 - the point where i paused the video to find the repo because i like the copy pasta just as much as the next guy. bippity boppity your code is now my property. Thanks James!

  • @manfredrohleder1806
    @manfredrohleder1806 3 ปีที่แล้ว +1

    As always. James, you're saving me hours.

  • @billymartin6497
    @billymartin6497 2 ปีที่แล้ว +1

    Is there no way to have dynamic text colors on the status bar?

  • @anandshindey
    @anandshindey 3 ปีที่แล้ว +1

    Just what I was looking for. Muchas gracias James.

  • @LeeM0to
    @LeeM0to 3 ปีที่แล้ว +1

    Another great useful video James 👍

  • @radamesr05
    @radamesr05 3 ปีที่แล้ว +1

    Excellent tutorial James!!! You Rock!! 💪🏻💪🏻💪🏻

  • @matt-i3r6w
    @matt-i3r6w 3 ปีที่แล้ว +1

    Could you show how to make a gradient title and status bar ?

    • @JamesMontemagno
      @JamesMontemagno  3 ปีที่แล้ว

      should be able to use the title view -> docs.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/navigation-titleview/ or renderer stackoverflow.com/questions/46809733/how-to-add-a-gradient-in-xamarin-forms-toolbar-and-uinavigationbar

  • @alexandradesypri6771
    @alexandradesypri6771 2 ปีที่แล้ว +1

    After spending some time searching, sorry if this is mentioned in another video, but for iOS make sure to set "Status bar is initially hidden" to NO, in info.plist. Otherwise, setting "View controller-based status bar appearence" will just hide the status bar.

  • @rsrodas
    @rsrodas 3 ปีที่แล้ว +3

    James, thanks for your videos, I like a lot. Since you are doing now many with dependencies, I would like to give a suggestion about how to work with notifications in our App in Android and iOS...

  • @faximori
    @faximori 3 ปีที่แล้ว

    I've different problem. How to hide statusbar in the splashscreen and restore it on the frontpage.

    • @JamesMontemagno
      @JamesMontemagno  3 ปีที่แล้ว

      You would want to create a unique theme for your splash page and hide it there

  • @robstark4062
    @robstark4062 2 ปีที่แล้ว

    Hi James, how about MAUI will it work?

    • @JamesMontemagno
      @JamesMontemagno  2 ปีที่แล้ว

      Should work just the same pretty much.

  • @imtiyazAhmad-gb7tn
    @imtiyazAhmad-gb7tn 3 ปีที่แล้ว

    Can you please let us know if we can publish IOS app on apple store from windows system or MAC system is compulsory for publish app, please solve my doubt thanks for advance

    • @JamesMontemagno
      @JamesMontemagno  3 ปีที่แล้ว

      You need to sign and bundle on a mac, this is an apple requirement.

  • @roman3dart78
    @roman3dart78 3 ปีที่แล้ว

    How can I tint an Icon in navbar? ToolbarItems aren't tintable on Android..

    • @JamesMontemagno
      @JamesMontemagno  3 ปีที่แล้ว

      I believe they all take the color of the Bar text color else maybe in the toolkit -> github.com/xamarin/XamarinCommunityToolkit/tree/main/src/CommunityToolkit/Xamarin.CommunityToolkit/Effects/IconTintColor

  • @paul790905
    @paul790905 3 ปีที่แล้ว

    Good, gracias, desde Cuba. James 💪🏻

  • @cizzl3702
    @cizzl3702 2 ปีที่แล้ว

    Hi, I checked your Source Code on Github for this project. I saw you updated the SetStatusBarColor Method. But I got some problems with it? In my white-mode I cannot see the Text anymore. In dark-mode everything works totally fine. Maybe I missed something, apperciate for a little hint.

    • @JamesMontemagno
      @JamesMontemagno  2 ปีที่แล้ว

      I mostly had to adjust that Task.Delay and then it was working. Fee free to comment on GitHub

  • @rvcits
    @rvcits 3 ปีที่แล้ว

    Good day James, can you please make vlog for making status bar transparent like in google map? Thank you and more power

  • @poochie8989
    @poochie8989 3 ปีที่แล้ว

    Great tutorial!
    I do have one bug on the iOS version, when calling pushmodalasync with a new navigationpage the statusbar turns white. Is there a fix for that? Can reproduced on the github repo.

  • @piotrmartenka9874
    @piotrmartenka9874 3 ปีที่แล้ว

    Thanks

  • @waltergrimm7161
    @waltergrimm7161 2 ปีที่แล้ว

    Hi James, thanx for the vid, I have one suggestion, a Video on Xam forms on how to add an Icon to the status bar, and access it. googleing "xamarin forms status bar icon" gives me no results besides changing the color of status bar.

  • @uzziautomatic3416
    @uzziautomatic3416 3 ปีที่แล้ว

    Hi there I'm about to learn app dev using the xamarin 101. Just a question cause so far I'm only seeing api via azure or cloud basically as the only option for logic. Might be costly for a starter like me. Is there a way to build the app with the logic built in it and only host the db(physical server) which is cheaper for a start?

    • @JamesMontemagno
      @JamesMontemagno  3 ปีที่แล้ว

      You could look at azure functions which scale on demand and are cheap. Could look at azure table storage which has key based data and is cheap too. Else you can connect up to azure cosmos db which has a free tier too.

    • @JamesMontemagno
      @JamesMontemagno  3 ปีที่แล้ว

      Of course you can host your database anywhere and create a web api your app can talk to. Lots of options

    • @uzziautomatic3416
      @uzziautomatic3416 3 ปีที่แล้ว

      @@JamesMontemagno thanks James.

  • @billymartin6497
    @billymartin6497 2 ปีที่แล้ว

    if (nav is not null)
    {
    nav.BarBackgroundColor = (Color)Application.Current.Resources["ButtonColor"];
    nav.BarTextColor = (Color)Application.Current.Resources["ButtonTextColor"];
    }

  • @tevolutionYT
    @tevolutionYT 3 ปีที่แล้ว

    awesome!!

  • @davsx6201
    @davsx6201 3 ปีที่แล้ว

    Nice!!!

  • @alexanderuddfeldt477
    @alexanderuddfeldt477 2 ปีที่แล้ว

    Hi James! Great video - great channel!
    By any chance, do you have material on how to open a Xamain.Forms app via a "deep link" url?
    Thanks /Alex

    • @JamesMontemagno
      @JamesMontemagno  2 ปีที่แล้ว

      Take a look at docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/deep-linking and devblogs.microsoft.com/xamarin/xamarin-forms-shell-query-parameters/#deep-linking-combining-route-based-navigation-with-query-properties-can-be-extremely-powerful-when-creating-apps-that-deep-link-from-the-web-or-custom-data-schemes-for-example-in-the-application

  • @williamprogramer4168
    @williamprogramer4168 3 ปีที่แล้ว

    ⭐⭐⭐⭐⭐

  • @dimitri_037
    @dimitri_037 3 ปีที่แล้ว

    Muita enrolação pra pouco ensinamento 🙄💅

  • @noturbeezwaxbeaulac1383
    @noturbeezwaxbeaulac1383 2 ปีที่แล้ว

    :( window.DecorView.SystemUiVisibility is now deprecated.

    • @Nahuel-223
      @Nahuel-223 ปีที่แล้ว

      try this: window.InsetsController.SetSystemBarsAppearance(darkStatusBarTint ? 8 : 0, 8);