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

  Рет қаралды 18,947

James Montemagno

James Montemagno

Күн бұрын

Пікірлер: 45
@alexlanders781
@alexlanders781 3 жыл бұрын
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!
@JamesMontemagno
@JamesMontemagno 3 жыл бұрын
Tehehehe
@alexandradesypri6771
@alexandradesypri6771 Жыл бұрын
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.
@anandshindey
@anandshindey 3 жыл бұрын
Just what I was looking for. Muchas gracias James.
@LeeM0to
@LeeM0to 3 жыл бұрын
Another great useful video James 👍
@rsrodas
@rsrodas 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...
@radamesr05
@radamesr05 3 жыл бұрын
Excellent tutorial James!!! You Rock!! 💪🏻💪🏻💪🏻
@manfredrohleder1806
@manfredrohleder1806 3 жыл бұрын
As always. James, you're saving me hours.
@JamesMontemagno
@JamesMontemagno 3 жыл бұрын
Whoop Whoop!
@piotrmartenka9874
@piotrmartenka9874 2 жыл бұрын
Thanks
@paul790905
@paul790905 3 жыл бұрын
Good, gracias, desde Cuba. James 💪🏻
@billymartin6497
@billymartin6497 2 жыл бұрын
Is there no way to have dynamic text colors on the status bar?
@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
@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
@matt-i3r6w
@matt-i3r6w 3 жыл бұрын
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
@tevolutionYT
@tevolutionYT 3 жыл бұрын
awesome!!
@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.
@JamesMontemagno
@JamesMontemagno 2 жыл бұрын
Like for notifications?
@robstark4062
@robstark4062 2 жыл бұрын
Hi James, how about MAUI will it work?
@JamesMontemagno
@JamesMontemagno 2 жыл бұрын
Should work just the same pretty much.
@davsx6201
@davsx6201 3 жыл бұрын
Nice!!!
@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.
@JamesMontemagno
@JamesMontemagno 3 жыл бұрын
Hmmm I’ll have to take a look
@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
@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.
@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
@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.
@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
@billymartin6497
@billymartin6497 2 жыл бұрын
if (nav is not null) { nav.BarBackgroundColor = (Color)Application.Current.Resources["ButtonColor"]; nav.BarTextColor = (Color)Application.Current.Resources["ButtonTextColor"]; }
@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);
Faster & Safer XAML with Compiled Bindings in Xamarin.Forms & .NET MAUI
13:43
Dynamic App Themes in Xamarin.Forms - Light, Dark, & Custom Modes
25:13
James Montemagno
Рет қаралды 20 М.
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 41 МЛН
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 3,3 МЛН
The Tri Folding Phone Durability Test! - someone has to try...
11:41
JerryRigEverything
Рет қаралды 1,2 МЛН
Configuring & Optimizing Xamarin Projects - Smaller, Faster, Better Apps
32:49
Animating Controls in .NET MAUI & Xamarin.Forms
19:19
James Montemagno
Рет қаралды 26 М.
Implement Push Notifications with Xamarin.Forms (Android) and FCM
28:49
What is the MVVM pattern, What benefits does MVVM have?
22:38
James Montemagno
Рет қаралды 100 М.
Text Animation and Micro Animation in Xamarin Forms
23:43
Oludayo Alli
Рет қаралды 6 М.
The TRIPLE FOLDING phone has a Problem.
12:54
Mrwhosetheboss
Рет қаралды 1,8 МЛН