title: Fragment is transparent and shows Activity below
body: <p>My Android application launches into BeginActivity which is a subclass of SherlockFragmentActivity and shows it's first view using:</p>
  
  <pre><code>@Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          if (getSupportFragmentManager().findFragmentById(android.R.id.content) == null) {
              Fragment f = LoginFragment.newInstance();
  
              getSupportFragmentManager()
                      .beginTransaction()
                      .add(android.R.id.content, f, "loginfragment")
                      .attach(f)
                      .commit();
          }
  }
  </code></pre>
  
  <p>LoginFragment shows a view like this:</p>
  
  <pre><code>@Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          super.onCreateView(inflater, container, savedInstanceState);
          // Inflate the layout for this fragment
          View v = inflater.inflate(R.layout.login, container, false);
  
          // Get pointers to text views
          usernameField = (EditText) v.findViewById(R.id.usernameLog);
          passwordField = (EditText) v.findViewById(R.id.passwordLog);
          progressBar = (ProgressBar) v.findViewById(R.id.progressBarLog);
          // Set button click listeners for both buttons
          Button b = (Button) v.findViewById(R.id.loginButton);
          b.setOnClickListener(this);
  
          return v;
      }
  </code></pre>
  
  <p>when clicking login I show a list view like this:</p>
  
  <pre><code>BeginActivity top = (BeginActivity) getActivity();
  Fragment f = OfferListFragment.newInstance();
          top.getSupportFragmentManager()
                  .beginTransaction()
                  .add(android.R.id.content, f, "offerList")
                  .addToBackStack(f.getClass().getSimpleName())
                  .commit();
  </code></pre>
  
  <p>and finally, OfferListFragment displays its view like this:</p>
  
  <pre><code>@Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          // Inflate the layout for this fragment
          View v = inflater.inflate(R.layout.offers, container, false);
  
          return v;
      }
  </code></pre>
  
  <p>Now the problem I am having, is that the final OfferListFragment seems to be transparent and I can see the login screen below it. I am using Theme.Sherlock that has a black background. Should I be manually setting the views backgrounds to black also? Or would the black in the theme be customisable by the user on the system? (I'm not an Android user).</p>
  
  <p>Thanks</p>