I want to add a night mode on my android app. For this case I added a folder layout-night
in the res
folder. Now I want that if my user choose the night mode theme from the settings, the app will use the layout from the layout-night folder.
Can anyone give me any suggestion how to implement it from the coding part.