Implement Night Mode in your App | Custom Styles in Android Studio

Implement Night Mode in your App | Custom Styles in Android Studio

Aws Rh

6 лет назад

71,239 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@mdfaysal8233
@mdfaysal8233 - 11.01.2021 14:05

Thanks Man. It helps me lot.

Ответить
@othmanalyusifey356
@othmanalyusifey356 - 05.01.2021 01:14

very amazing

Ответить
@aswinko
@aswinko - 22.12.2020 18:00

Bro I have an issue :
Binary XML file line #-1: Error inflating class <unknown>.
Please reply ...

Ответить
@c99rahul
@c99rahul - 28.09.2020 21:41

Using `recreate()` in place of `restartApp()` would save one from falling in the flickering window transition problem with the newer builds. Cheers!

Ответить
@nataliianovykova4637
@nataliianovykova4637 - 31.08.2020 19:47

how I can implement it in fragment?

Ответить
@santutunga4369
@santutunga4369 - 21.07.2020 05:12

Thanks

Ответить
@pratheekshetty.m5784
@pratheekshetty.m5784 - 11.07.2020 17:25

How can I make dark theme for all activities when I checked Switch please please help me

Ответить
@guiguibo9418
@guiguibo9418 - 25.06.2020 10:52

i have a problem with the switch (because the switch is null) in android 10.0, the error is at this fonction "myswitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener()" how can i fix this?

Ответить
@izarrato3005
@izarrato3005 - 05.06.2020 19:49

in styles use DayNight instead os Light
<style name="AppTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">

Ответить
@MasalaMan
@MasalaMan - 31.05.2020 21:18

This is only works for one page

Ответить
@biswajitdas9471
@biswajitdas9471 - 24.05.2020 04:31

Awesome mate. It helped me a lot.

Ответить
@PeeyuSquad
@PeeyuSquad - 02.05.2020 13:59

how to change all activities into dark theme pls reply urgent

Ответить
@captain.andreas2963
@captain.andreas2963 - 01.04.2020 03:30

how i can call it for other activities?

Ответить
@nishilraiyarela5141
@nishilraiyarela5141 - 20.03.2020 07:22

If we implement Night mode in one Activity ...will it apply to the whole app until we switch it back?

Ответить
@alielias3025
@alielias3025 - 27.02.2020 15:34

nice video thank you very much but please make the font larger next time

Ответить
@alexeysuzdalenko4096
@alexeysuzdalenko4096 - 11.02.2020 22:06

fanks a lot

Ответить
@kamalchan9756
@kamalchan9756 - 24.01.2020 18:31

great the best explain

Ответить
@puteraaaa7011
@puteraaaa7011 - 17.12.2019 10:34

give me source code please

Ответить
@jaimexbhandari6132
@jaimexbhandari6132 - 05.12.2019 13:17

thanks

Ответить
@devaref2461
@devaref2461 - 14.11.2019 11:43

Nice Work, thanks for help

Ответить
@vivekmavani3970
@vivekmavani3970 - 13.11.2019 18:34

How to apply dark mode in hole application ?

Ответить
@adamoumoussaabdoulmoumouni8188
@adamoumoussaabdoulmoumouni8188 - 21.10.2019 09:53

Thanx for the awesome tutorial. It worked. However how do I change to night mode in an app with a navigation drawer. This code seems not to work when I have a navigation drawer in my android app. How can proced?

Ответить
@benyaminmousagholi2313
@benyaminmousagholi2313 - 17.10.2019 13:59

thanks a lot, but please put your source code on github or anywhere else so we can check our code so there would be no need to hover in the video!

Ответить
@Muni1203
@Muni1203 - 23.09.2019 20:02

Please provide the corresponding link(of your blog) of the above tutorial. Thanks.

Ответить
@user-xk1ud4dr3x
@user-xk1ud4dr3x - 16.09.2019 15:36

You could change the webview background color to dark

Ответить
@mr_developer1667
@mr_developer1667 - 08.09.2019 09:18

Awesome video.

Ответить
@hosseinyazdi7439
@hosseinyazdi7439 - 07.09.2019 00:58

The best tutorial that I've found. Thank you also for stepping further to teach us the transition as well. THANK YOU SO MUCH!

Ответить
@jimmytrivedi
@jimmytrivedi - 09.08.2019 13:52

Not working in Pie and above!

Ответить
@gagansingh9642
@gagansingh9642 - 03.08.2019 15:42

this works with settings activity only,,,how to implement this on rest of the app.

Ответить
@user-xk1ud4dr3x
@user-xk1ud4dr3x - 21.07.2019 17:50

How can I communicate with you?

Ответить
@user-xk1ud4dr3x
@user-xk1ud4dr3x - 21.07.2019 17:49

Hi .. A possible way to make a ListView in Tab is to fetch the list from String

Ответить
@saramohmad4014
@saramohmad4014 - 19.07.2019 14:25

THANKS MAN
i was looking for somthing like attrs and i finally found it

Ответить
@syedhissaan1654
@syedhissaan1654 - 09.07.2019 11:07

the video was good, but i would strongly suggest you to make it to the point, and adding only the necessary components (since the video was about night mode and light mode instead of buttons and other views) + add voice instead of music to let us know what is going on !

Ответить
@parisapiran
@parisapiran - 17.05.2019 18:05

Aaaa..dude!!!u dont know how much u've helped my project with your tutorialsss,the best... thx!

Ответить
@1nsight909
@1nsight909 - 20.04.2019 06:47

What to do with the isChecked variable? You didn't initialize it? What do I do?

Ответить
@clarkjoshuab.deguzman9325
@clarkjoshuab.deguzman9325 - 05.04.2019 16:55

How can u apply it in all activity?

Ответить
@danilochagov8418
@danilochagov8418 - 26.03.2019 18:10

you made my day! THNX

Ответить
@alekseiturbin3454
@alekseiturbin3454 - 20.03.2019 22:33

Many Thanks!

Ответить
@aditya3n
@aditya3n - 04.03.2019 17:42

hi. i want to change whole activities on the app, but i dont want to close current screen. im using activity.recreate() , but it only changes the theme of current activity (i change from a fragment). so any idea how to do this? thanks in advance

Ответить
@GameMaxGamingChannel
@GameMaxGamingChannel - 13.02.2019 18:57

This is the best tutorial in my whole life..thank you dude

Ответить
@arunachalamk1145
@arunachalamk1145 - 02.02.2019 09:16

u are awesome bro
love from chennai

Ответить
@ScoobyDudeYT
@ScoobyDudeYT - 30.01.2019 14:03

Bro how to apply dark mode in all activity once you turn on the dark mode settings.

Ответить
@trishnavarro9468
@trishnavarro9468 - 23.01.2019 06:53

Why do I always get erro whenever I do the colors in the style.xml

Ответить
@APX095
@APX095 - 16.01.2019 05:09

android:background="?attr/background_color" throws Binary XML file line #2: Binary XML file line #2: Error inflating class <unknown>

HELP!

Ответить
@thomasvalois9797
@thomasvalois9797 - 11.01.2019 13:36

Love the fact you show what the app will look like at the start of the video! Keep these videos coming they are incredible!

Ответить
@tigerpc6593
@tigerpc6593 - 02.01.2019 20:49

How to set Dark Mode in WebView? please sir.. make a video on this topic.

Ответить
@ZahidHasan-vw3sz
@ZahidHasan-vw3sz - 22.12.2018 13:27

You Are The Best....

Ответить
@pagetmaanige5584
@pagetmaanige5584 - 08.12.2018 11:22

Thanx for the awesome tutorial. It worked just fine however how do I change to night mode in an app with a navigation drawer. This code seems not to work when I have a navigation drawer in my android app. How can that be fixed?

Ответить
@DiogoSilva-lb2ij
@DiogoSilva-lb2ij - 30.11.2018 20:47

Very good, thank you!

Ответить