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