android - Changing app theme without recreating activity -


i have custom theme theme.appcompat.daynight.noactionbar parent resources both day , night modes.

in documentation, there method provided change theme , unless current activity recreated, theme change next time activity launched.

twitter , pocket on other hand change themes without recreating activity user on.

how can achieve this?


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -