L
L
LuVairo2021-02-22 12:46:55
Java
LuVairo, 2021-02-22 12:46:55

How to implement night theme in android application?

I want to make a night theme in my app that activates when a button is clicked. In this case, the activity should not be recreated (important). With a night theme, for example, the color of buttons, background, etc. changes

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Vodakov, 2021-02-22
@WaterSmith

In this case, the activity should not be recreated (important)
Think carefully about whether this is so important, because changing the theme without recreating the activity will have to write a lot of code.
Details at the link: https://dimlix.com/switch-theme-android/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question