AppCompat-Aktionsleistenbibliothek zeigt keine hinzugefügten Fragmente an

BEARBEITEN: Wenn ich verlängereFragmentActivity anstattActionBarActivity Mein Layout wird wieder angezeigt (ohne einActionBar Na sicher).

DasActionBar funktioniert wie vorgesehen weiter4.x Geräte, aber auf meinem2.3 Alles was ich bekomme ist dasActionBar und einleerer Bildschirm darunter. DasFragment scheint nicht hinzugefügt zu werdenActivity.

themes.xml

<style name="AppTheme" parent="AppBaseTheme">
    <item name="actionBarStyle">@style/Widget.ActionBar</item>
</style>

themes-v11.xml

<style name="AppTheme" parent="AppBaseTheme">
    <item name="android:actionBarStyle">@style/Widget.ActionBar</item>
</style>

styles.xml

<style name="Widget.ActionBar" parent="@style/Widget.AppCompat.ActionBar">
    <item name="android:background">@color/actionbar_background</item>
    <item name="background">@color/actionbar_background</item>
</style>

AktivitätonCreate()

FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
myFragment = new WallFragment();
fragmentTransaction.add(android.R.id.content, 
    myFragment, myFragment.FRAGMENT_TAG);
fragmentTransaction.commit();

Ich benutze Gradle, um dieAppCompat ActionBar Bibliothek in meiner App.

compile 'com.android.support:appcompat-v7:18.0.+'

Antworten auf die Frage(1)

Ihre Antwort auf die Frage