title: Android: Dynamically inserting view results in change in colors of form widgets
body: <p>In my Android activity I attempt to dynamically add a view inside my existing view.</p>
  
  <p>I do so with the following code:</p>
  
  <pre><code>LayoutInflater vi = (LayoutInflater) getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  View v = vi.inflate(R.layout.newactivity_name, null);
  View insertPoint = findViewById(R.id.aVerticalLinearLayout);
  ((ViewGroup) insertPoint).addView(v, 0, new  ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
  </code></pre>
  
  <p>Everything seems to work fine except somehow the colors/theme get messed up
  making all the form widgets seem extremely faded.</p>
  
  <p>How I expect it to look:
  <a href="http://imgur.com/Qdr4r5e,ScYUltJ#1" rel="nofollow">How it is displayed in the xml graphic display</a></p>
  
  <p>How it looks:
  <a href="http://imgur.com/Qdr4r5e,ScYUltJ#0" rel="nofollow">how it appears on the emulator after being inflated</a>  (ignore the text:hint being different)</p>
  
  <p>Any ideas?</p>
  
  <p>Or could you tell me how I can make the calenderView and DatePicker look normal by manually
  setting the colors? </p>