Фрагмент прозрачный и показывает активность ниже

Мое приложение Android запускается в BeginActivity, который является подклассом SherlockFragmentActivity и показывает его первое представление с использованием:

@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();
        }
}

LoginFragment показывает такой вид:

@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;
    }

при нажатии на логин я показываю вид списка следующим образом:

BeginActivity top = (BeginActivity) getActivity();
Fragment f = OfferListFragment.newInstance();
        top.getSupportFragmentManager()
                .beginTransaction()
                .add(android.R.id.content, f, "offerList")
                .addToBackStack(f.getClass().getSimpleName())
                .commit();

и наконец, OfferListFragment отображает свой вид следующим образом:

@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;
    }

Теперь проблема, с которой я столкнулся, заключается в том, что окончательный фрагмент OfferListFragment кажется прозрачным, и под ним я вижу экран входа в систему. Я использую Theme.Sherlock с черным фоном. Должен ли я вручную установить фоны видов на черный? Или черное в теме будет настраиваться пользователем в системе? (Я не пользователь Android).

Спасибо

Ответы на вопрос(3)

Ваш ответ на вопрос