title: Day/Night theme for android app
body: <p>I have an app in which I need to implement day / night theme. Unfortunately there is no simple way of making theming by just using styles, I need to be able to update: layout backgrounds, button selectors, text color, text size, images, icons, animations.</p>
  
  <p>From what I see I have 2 options:</p>
  
  <ol>
  <li><p>Have different xml layout files for night/day, so something like <code>home_day.xml</code> / <code>home_night.xml</code>. There are around 30 screens in the app, so in the end there will be 60 xml layouts. On activity/fragment onCreate, based on current hour I could <code>setContentView</code>. This adds some more xml files but avoids adding more code in activities</p></li>
  <li><p>Have only one layout for day/night and on activity's <code>onCreate</code> findviewById for each item I want to theme and update his attributes based on current day/night. This could generate a lot of extra code, findviews and apply attributes for many views.</p></li>
  </ol>
  
  <p>I am aiming for for 2. but I am open to any suggestions from you. So, what would you choose and why ?</p>