title: getWindow setBackgroundDrawable Color.TRANSPARENT make background black
body: <p>I have an activity with the following structure</p>
  
  <pre><code>/////////////////////
  /      Header       /
  /////////////////////
  
  
  
  /      Content      /
  
  
  
  /////////////////////
  /      Footer       /
  /////////////////////
  </code></pre>
  
  <p>the content part open a fragment in a new Activity with the same design , what I want to do is to make this fragment transparent to be able to show the fragment in the previous activity  </p>
  
  <p>I have tried this line of code in the second activity but it gives me a black background</p>
  
  <pre><code>getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
  </code></pre>
  
  <p>can anyone help please ?</p>