L
L
LittleBob2022-04-14 23:15:27
Android
LittleBob, 2022-04-14 23:15:27

How to make your own styles in the application?

In the colors resource, I have the colors that I use directly in the application:
62587ff1ee292263915540.png
I want to do something like this:
6258804534116720700723.png
That is, the names of the colors will remain the same (values ​​will change), but I will separate them by styles and apply the one I need, thereby change the color theme of the application.
I didn't find any information about this in Google, but what I'm trying to do does not work.
I would be very grateful for help, how is this implemented? I actually just need to change the values ​​of these 5 colors.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexVWill, 2022-04-14
@AlexVWill

So there are themes. Minimum 2 by default, day and night. Make your own as much as you want and implement. They are in the themes folder. Here even a help is how to do it https://developer.android.com/guide/topics/ui/look...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question